Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/move-file/index.d.ts')
-rw-r--r--node_modules/move-file/index.d.ts41
1 files changed, 0 insertions, 41 deletions
diff --git a/node_modules/move-file/index.d.ts b/node_modules/move-file/index.d.ts
deleted file mode 100644
index 45616d0f4..000000000
--- a/node_modules/move-file/index.d.ts
+++ /dev/null
@@ -1,41 +0,0 @@
-declare namespace moveFile {
- interface Options {
- /**
- Overwrite existing destination file.
-
- @default true
- */
- readonly overwrite?: boolean;
- }
-}
-
-declare const moveFile: {
- /**
- Move a file.
-
- @param source - File you want to move.
- @param destination - Where you want the file moved.
- @returns A `Promise` that resolves when the file has been moved.
-
- @example
- ```
- import moveFile = require('move-file');
-
- (async () => {
- await moveFile('source/unicorn.png', 'destination/unicorn.png');
- console.log('The file has been moved');
- })();
- ```
- */
- (source: string, destination: string, options?: moveFile.Options): Promise<void>;
-
- /**
- Move a file synchronously.
-
- @param source - File you want to move.
- @param destination - Where you want the file moved.
- */
- sync(source: string, destination: string, options?: moveFile.Options): void;
-};
-
-export = moveFile;