Skip to content

Commit 90aa96d

Browse files
Mesteerytargos
authored andcommitted
typings: improve internal bindings typings
PR-URL: #40411 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent c78d708 commit 90aa96d

11 files changed

+501
-442
lines changed

typings/globals.d.ts

+12-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,12 @@
1-
declare type TypedArray = Uint16Array | Uint32Array | Uint8Array | Uint8ClampedArray | Int16Array | Int32Array | Int8Array | BigInt64Array | Float32Array | Float64Array | BigUint64Array;
1+
declare type TypedArray =
2+
| Uint8Array
3+
| Uint8ClampedArray
4+
| Uint16Array
5+
| Uint32Array
6+
| Int8Array
7+
| Int16Array
8+
| Int32Array
9+
| Float32Array
10+
| Float64Array
11+
| BigUint64Array
12+
| BigInt64Array;

typings/internalBinding/config.d.ts

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
declare function InternalBinding(binding: 'config'): {
2-
isDebugBuild: boolean,
3-
hasOpenSSL: boolean,
4-
fipsMode: boolean,
5-
hasIntl: boolean,
6-
hasTracing: boolean,
7-
hasNodeOptions: boolean,
8-
hasInspector: boolean,
9-
noBrowserGlobals: boolean,
10-
bits: number,
11-
hasDtrace: boolean
12-
}
2+
isDebugBuild: boolean;
3+
hasOpenSSL: boolean;
4+
fipsMode: boolean;
5+
hasIntl: boolean;
6+
hasTracing: boolean;
7+
hasNodeOptions: boolean;
8+
hasInspector: boolean;
9+
noBrowserGlobals: boolean;
10+
bits: number;
11+
hasDtrace: boolean;
12+
};

0 commit comments

Comments
 (0)