These types are not exported by webpack, but they are available to TypeScript consumers.
Attributes
lstat:
LStatTypeslstat method
readdir:
ReaddirTypesreaddir method
readFile:
ReadFileTypesread file method
readJson:
(pathOrFileDescription: PathOrFileDescriptorTypes, callback: (err: Error | ErrnoException | null, result?: JsonObjectTypes) => void) => voidread json method
readlink:
ReadlinkTypesread link method
realpath:
RealPathTypesrealpath method
stat:
StatTypesstat method
Returns location of targetPath relative to rootPath.
Attributes
lstat:
LStatFslstatSync:
LStatSyncreaddir:
ReaddirFsreaddirSync:
ReaddirSyncreadFile:
ReadFileFsreadFileSync:
ReadFileSyncreadJson:
(pathOrFileDescriptor: PathOrFileDescriptorFs, callback: (err: Error | ErrnoException | null, result?: JsonObjectFs) => void) => voidreadJsonSync:
(pathOrFileDescriptor: PathOrFileDescriptorFs) => JsonObjectFsreadlink:
ReadlinkFsreadlinkSync:
ReadlinkSyncrealpath:
RealPathFsrealpathSync:
RealPathSyncstat:
StatFsstatSync:
StatSyncReturns location of targetPath relative to rootPath.
Attributes
createReadStream:
(path: PathLikeFs, options?: "ascii" | "utf8" | "utf-8" | "utf16le" | "utf-16le" | "ucs2" | "ucs-2" | "base64" | "base64url" | "latin1" | "binary" | "hex" | ReadStreamOptions) => ReadableStreamlstat:
LStatFsmkdir:
Mkdirreaddir:
ReaddirFsreadFile:
ReadFileFsrmdir:
(file: PathLikeFs, callback: (err: ErrnoException | null) => void) => voidstat:
StatFsunlink:
(pathLike: PathLikeFs, callback: (err: ErrnoException | null) => void) => voidwriteFile:
WriteFileReturns location of targetPath relative to rootPath.
Attributes
watch:
(files: Iterable<string>, directories: Iterable<string>, missing: Iterable<string>, startTime: number, options: WatchOptions, callback: (err: Error | null, timeInfoEntries1?: Map<string, "ignore" | EntryTypesIndex | OnlySafeTimeEntry | ExistenceOnlyTimeEntryTypesIndex | null>, timeInfoEntries2?: Map<string, "ignore" | EntryTypesIndex | OnlySafeTimeEntry | ExistenceOnlyTimeEntryTypesIndex | null>, changes?: Set<string>, removals?: Set<string>) => void, callbackUndelayed: (value: string, num: number) => void) => Watcher