Skip to content

Commit

Permalink
typings: improve internal bindings typings
Browse files Browse the repository at this point in the history
PR-URL: #40411
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
Mesteery authored and BethGriggs committed Nov 25, 2021
1 parent eea061f commit fbe0323
Show file tree
Hide file tree
Showing 11 changed files with 501 additions and 442 deletions.
13 changes: 12 additions & 1 deletion typings/globals.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,12 @@
declare type TypedArray = Uint16Array | Uint32Array | Uint8Array | Uint8ClampedArray | Int16Array | Int32Array | Int8Array | BigInt64Array | Float32Array | Float64Array | BigUint64Array;
declare type TypedArray =
| Uint8Array
| Uint8ClampedArray
| Uint16Array
| Uint32Array
| Int8Array
| Int16Array
| Int32Array
| Float32Array
| Float64Array
| BigUint64Array
| BigInt64Array;
22 changes: 11 additions & 11 deletions typings/internalBinding/config.d.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
declare function InternalBinding(binding: 'config'): {
isDebugBuild: boolean,
hasOpenSSL: boolean,
fipsMode: boolean,
hasIntl: boolean,
hasTracing: boolean,
hasNodeOptions: boolean,
hasInspector: boolean,
noBrowserGlobals: boolean,
bits: number,
hasDtrace: boolean
}
isDebugBuild: boolean;
hasOpenSSL: boolean;
fipsMode: boolean;
hasIntl: boolean;
hasTracing: boolean;
hasNodeOptions: boolean;
hasInspector: boolean;
noBrowserGlobals: boolean;
bits: number;
hasDtrace: boolean;
};
Loading

0 comments on commit fbe0323

Please sign in to comment.