@types/node 16.9.5 → 16.9.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. node/README.md +1 -1
  2. node/fs.d.ts +29 -14
  3. node/package.json +2 -2
node/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for Node.js (https://nodejs.org/).
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Tue, 21 Sep 2021 18:31:40 GMT
11
+ * Last updated: Tue, 21 Sep 2021 19:02:14 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`
14
14
 
node/fs.d.ts CHANGED
@@ -904,42 +904,42 @@ declare module 'fs' {
904
904
  ): Promise<BigIntStats>;
905
905
  function __promisify__(path: PathLike, options?: StatOptions): Promise<Stats | BigIntStats>;
906
906
  }
907
- export interface StatSyncFn<TDescriptor = PathLike> extends Function {
908
- (path: TDescriptor, options?: undefined): Stats;
907
+ export interface StatSyncFn extends Function {
908
+ (path: PathLike, options?: undefined): Stats;
909
909
  (
910
- path: TDescriptor,
911
- options?: StatOptions & {
910
+ path: PathLike,
911
+ options?: StatSyncOptions & {
912
912
  bigint?: false | undefined;
913
913
  throwIfNoEntry: false;
914
914
  }
915
915
  ): Stats | undefined;
916
916
  (
917
- path: TDescriptor,
918
- options: StatOptions & {
917
+ path: PathLike,
918
+ options: StatSyncOptions & {
919
919
  bigint: true;
920
920
  throwIfNoEntry: false;
921
921
  }
922
922
  ): BigIntStats | undefined;
923
923
  (
924
- path: TDescriptor,
925
- options?: StatOptions & {
924
+ path: PathLike,
925
+ options?: StatSyncOptions & {
926
926
  bigint?: false | undefined;
927
927
  }
928
928
  ): Stats;
929
929
  (
930
- path: TDescriptor,
931
- options: StatOptions & {
930
+ path: PathLike,
931
+ options: StatSyncOptions & {
932
932
  bigint: true;
933
933
  }
934
934
  ): BigIntStats;
935
935
  (
936
- path: TDescriptor,
937
- options: StatOptions & {
936
+ path: PathLike,
937
+ options: StatSyncOptions & {
938
938
  bigint: boolean;
939
939
  throwIfNoEntry?: false | undefined;
940
940
  }
941
941
  ): Stats | BigIntStats;
942
- (path: TDescriptor, options?: StatOptions): Stats | BigIntStats | undefined;
942
+ (path: PathLike, options?: StatSyncOptions): Stats | BigIntStats | undefined;
943
943
  }
944
944
  /**
945
945
  * Synchronous stat(2) - Get file status.
@@ -993,7 +993,20 @@ declare module 'fs' {
993
993
  * Synchronous fstat(2) - Get file status.
994
994
  * @param fd A file descriptor.
995
995
  */
996
- export const fstatSync: StatSyncFn<number>;
996
+ export function fstatSync(
997
+ fd: number,
998
+ options?: StatOptions & {
999
+ bigint?: false | undefined;
1000
+ }
1001
+ ): Stats;
1002
+ export function fstatSync(
1003
+ fd: number,
1004
+ options: StatOptions & {
1005
+ bigint: true;
1006
+ }
1007
+ ): BigIntStats;
1008
+ export function fstatSync(fd: number, options?: StatOptions): Stats | BigIntStats;
1009
+
997
1010
  /**
998
1011
  * Retrieves the `fs.Stats` for the symbolic link referred to by the path.
999
1012
  * The callback gets two arguments `(err, stats)` where `stats` is a `fs.Stats` object. `lstat()` is identical to `stat()`, except that if `path` is a symbolic
@@ -3662,6 +3675,8 @@ declare module 'fs' {
3662
3675
  }
3663
3676
  export interface StatOptions {
3664
3677
  bigint?: boolean | undefined;
3678
+ }
3679
+ export interface StatSyncOptions extends StatOptions {
3665
3680
  throwIfNoEntry?: boolean | undefined;
3666
3681
  }
3667
3682
  export interface CopyOptions {
node/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "16.9.5",
3
+ "version": "16.9.6",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -230,6 +230,6 @@
230
230
  },
231
231
  "scripts": {},
232
232
  "dependencies": {},
233
- "typesPublisherContentHash": "61d13b4d21d59c469fe3ee74d07833d5c8d81ab0f1d6b02f30c7218224cb652e",
233
+ "typesPublisherContentHash": "c4662ea2cb063daa42b8d823f2e21b1763849312ccfc39f1c758b1540b16ebd8",
234
234
  "typeScriptVersion": "3.7"
235
235
  }