mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
feat(fs-extra): replace fs.symlink.Type with local copy FsSymlinkType (#27072)
This commit is contained in:
committed by
Mohamed Hegazy
parent
be2fc3762c
commit
a315fbc373
Vendored
+3
-2
@@ -207,9 +207,9 @@ export function rmdir(path: string | Buffer): Promise<void>;
|
||||
export function stat(path: string | Buffer, callback: (err: NodeJS.ErrnoException, stats: Stats) => any): void;
|
||||
export function stat(path: string | Buffer): Promise<Stats>;
|
||||
|
||||
export function symlink(srcpath: string | Buffer, dstpath: string | Buffer, type: fs.symlink.Type | undefined, callback: (err: NodeJS.ErrnoException) => void): void;
|
||||
export function symlink(srcpath: string | Buffer, dstpath: string | Buffer, type: FsSymlinkType | undefined, callback: (err: NodeJS.ErrnoException) => void): void;
|
||||
export function symlink(srcpath: string | Buffer, dstpath: string | Buffer, callback: (err: NodeJS.ErrnoException) => void): void;
|
||||
export function symlink(srcpath: string | Buffer, dstpath: string | Buffer, type?: fs.symlink.Type): Promise<void>;
|
||||
export function symlink(srcpath: string | Buffer, dstpath: string | Buffer, type?: FsSymlinkType): Promise<void>;
|
||||
|
||||
export function truncate(path: string | Buffer, callback: (err: NodeJS.ErrnoException) => void): void;
|
||||
export function truncate(path: string | Buffer, len: number, callback: (err: NodeJS.ErrnoException) => void): void;
|
||||
@@ -261,6 +261,7 @@ export type CopyFilterSync = (src: string, dest: string) => boolean;
|
||||
export type CopyFilterAsync = (src: string, dest: string) => Promise<boolean>;
|
||||
|
||||
export type SymlinkType = "dir" | "file";
|
||||
export type FsSymlinkType = "dir" | "file" | "junction";
|
||||
|
||||
export interface CopyOptions {
|
||||
dereference?: boolean;
|
||||
|
||||
Reference in New Issue
Block a user