@file-services/types
Advanced tools
Comparing version 3.0.0 to 3.1.0
@@ -60,2 +60,5 @@ import type { IFileSystemStats, BufferEncoding, CallbackFnVoid, CallbackFn, WriteFileOptions, ReadFileOptions, IDirectoryEntry } from './common-fs-types'; | ||
mkdir(filePath: string, callback: CallbackFnVoid): void; | ||
mkdir(filePath: string, options: { | ||
recursive?: boolean; | ||
}, callback: CallbackFnVoid): void; | ||
/** | ||
@@ -136,3 +139,5 @@ * Delete a directory. | ||
*/ | ||
mkdir(directoryPath: string): Promise<void>; | ||
mkdir(directoryPath: string, options?: { | ||
recursive?: boolean; | ||
}): Promise<void>; | ||
/** | ||
@@ -139,0 +144,0 @@ * Delete a directory. |
@@ -67,3 +67,5 @@ import type { IFileSystemStats, BufferEncoding, WriteFileOptions, ReadFileOptions, IDirectoryEntry } from './common-fs-types'; | ||
*/ | ||
mkdirSync(directoryPath: string): void; | ||
mkdirSync(directoryPath: string, options?: { | ||
recursive?: boolean; | ||
}): void; | ||
/** | ||
@@ -70,0 +72,0 @@ * Delete an existing directory. |
{ | ||
"name": "@file-services/types", | ||
"description": "Common file system interfaces", | ||
"version": "3.0.0", | ||
"version": "3.1.0", | ||
"main": "cjs/index.js", | ||
@@ -6,0 +6,0 @@ "types": "cjs/index.d.ts", |
@@ -77,2 +77,3 @@ import type { | ||
mkdir(filePath: string, callback: CallbackFnVoid): void; | ||
mkdir(filePath: string, options: { recursive?: boolean }, callback: CallbackFnVoid): void; | ||
@@ -158,3 +159,3 @@ /** | ||
*/ | ||
mkdir(directoryPath: string): Promise<void>; | ||
mkdir(directoryPath: string, options?: { recursive?: boolean }): Promise<void>; | ||
@@ -161,0 +162,0 @@ /** |
@@ -74,3 +74,3 @@ import type { | ||
*/ | ||
mkdirSync(directoryPath: string): void; | ||
mkdirSync(directoryPath: string, options?: { recursive?: boolean }): void; | ||
@@ -77,0 +77,0 @@ /** |
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
72922
1569
2319