Skip to content

Commit

Permalink
typings: improve internal bindings typings
Browse files Browse the repository at this point in the history
  • Loading branch information
Mesteery committed Oct 24, 2021
1 parent 31d7d6c commit 805653e
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 805653e

Please sign in to comment.