yilmazselin / typscript-move-app

Typescript tutorial application project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question

Please update src/move.ts to pass tests. You can find the tests in src/move.spec.ts.

Move function signature

Key Type Description
list Folder[] Given list
source string Id of the moved file
destination string Id of the folder to be moved

Folder shape

Key Type Description
id string Unique identifier of folder
name string Name of the folder
files File [] Files in this folder

File shape

Key Type Description
id string Unique identifier of file
name string Name of the file

NOTE: All IDs are unique.

Lint the code

yarn lint

Running tests

yarn test

NOTE: If you believe that some scenarios are missing in the tests, don't hesitate to add them to suite.

Format the code

yarn format

typscript-move-app

About

Typescript tutorial application project


Languages

Language:TypeScript 98.1%Language:JavaScript 1.9%