@file-services/types
Advanced tools
Comparing version 0.4.6 to 0.4.7
@@ -19,2 +19,8 @@ /// <reference types="node" /> | ||
/** | ||
* Synchronously copies src to dest. | ||
* Param flags is used as modifiers for copy operation. Default: 0 (dest is overwritten if it already exists) | ||
* flags = FileSystemConstants.COPYFILE_EXCL will cause copy operation to fail if dest already exists. | ||
*/ | ||
copyFileSync(src: string, dest: string, flags?: number): void; | ||
/** | ||
* Read the entire contents of a file as a string. | ||
@@ -76,2 +82,8 @@ * If `encoding` isn't specified, 'utf8' is assumed. | ||
/** | ||
* Asynchronously copies src to dest. | ||
* Param flags is used as modifiers for copy operation. Default: 0 (dest is overwritten if it already exists) | ||
* flags = FileSystemConstants.COPYFILE_EXCL will cause copy operation to fail if dest already exists. | ||
*/ | ||
copyFile(src: string, dest: string, flags?: number): Promise<void>; | ||
/** | ||
* Read the entire contents of a file as a string. | ||
@@ -78,0 +90,0 @@ * If `encoding` isn't specified, 'utf8' is assumed. |
@@ -5,2 +5,3 @@ export * from './base-api'; | ||
export * from './watch-api'; | ||
export * from './constants'; | ||
//# sourceMappingURL=index.d.ts.map |
"use strict"; | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__export(require("./constants")); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@file-services/types", | ||
"description": "Common file system interfaces", | ||
"version": "0.4.6", | ||
"version": "0.4.7", | ||
"main": "cjs/index.js", | ||
@@ -24,3 +24,3 @@ "types": "cjs/index.d.ts", | ||
"sideEffects": false, | ||
"gitHead": "e8d923d4e5bd5553276b195acd5a9d794eb733c0" | ||
"gitHead": "801ee42213735758dfacaedcf14537635f89e3d0" | ||
} |
@@ -20,2 +20,9 @@ import { IWatchService } from './watch-api' | ||
/** | ||
* Synchronously copies src to dest. | ||
* Param flags is used as modifiers for copy operation. Default: 0 (dest is overwritten if it already exists) | ||
* flags = FileSystemConstants.COPYFILE_EXCL will cause copy operation to fail if dest already exists. | ||
*/ | ||
copyFileSync(src: string, dest: string, flags?: number): void | ||
/** | ||
* Read the entire contents of a file as a string. | ||
@@ -89,2 +96,9 @@ * If `encoding` isn't specified, 'utf8' is assumed. | ||
/** | ||
* Asynchronously copies src to dest. | ||
* Param flags is used as modifiers for copy operation. Default: 0 (dest is overwritten if it already exists) | ||
* flags = FileSystemConstants.COPYFILE_EXCL will cause copy operation to fail if dest already exists. | ||
*/ | ||
copyFile(src: string, dest: string, flags?: number): Promise<void> | ||
/** | ||
* Read the entire contents of a file as a string. | ||
@@ -91,0 +105,0 @@ * If `encoding` isn't specified, 'utf8' is assumed. |
@@ -5,1 +5,2 @@ export * from './base-api' | ||
export * from './watch-api' | ||
export * from './constants' |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
37812
33
846
9