-
Notifications
You must be signed in to change notification settings - Fork 29.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
typings: separate
internalBinding
typings
PR-URL: #40409 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Zijian Liu <lxxyxzj@gmail.com> Reviewed-By: Qingyu Deng <i@ayase-lab.com>
- Loading branch information
1 parent
774bc46
commit 63ab003
Showing
6 changed files
with
47 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
declare type TypedArray = Uint16Array | Uint32Array | Uint8Array | Uint8ClampedArray | Int16Array | Int32Array | Int8Array | BigInt64Array | Float32Array | Float64Array | BigUint64Array; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
declare function InternalBinding(binding: 'symbols'): { | ||
[name: string]: symbol; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
declare function InternalBinding(binding: 'types'): { | ||
isAsyncFunction(value: unknown): value is (...args: unknown[]) => Promise<unknown>, | ||
isGeneratorFunction(value: unknown): value is GeneratorFunction, | ||
isAnyArrayBuffer(value: unknown): value is (ArrayBuffer | SharedArrayBuffer), | ||
isArrayBuffer(value: unknown): value is ArrayBuffer, | ||
isArgumentsObject(value: unknown): value is ArrayLike<unknown>, | ||
isBoxedPrimitive(value: unknown): value is (BigInt | Boolean | Number | String | Symbol), | ||
isDataView(value: unknown): value is DataView, | ||
isExternal(value: unknown): value is Object, | ||
isMap(value: unknown): value is Map<unknown, unknown>, | ||
isMapIterator: (value: unknown) => value is IterableIterator<unknown>, | ||
isModuleNamespaceObject: (value: unknown) => value is {[Symbol.toStringTag]: 'Module', [key: string]: any}, | ||
isNativeError: (value: unknown) => Error, | ||
isPromise: (value: unknown) => value is Promise<unknown>, | ||
isSet: (value: unknown) => value is Set<unknown>, | ||
isSetIterator: (value: unknown) => value is IterableIterator<unknown>, | ||
isWeakMap: (value: unknown) => value is WeakMap<object, unknown>, | ||
isWeakSet: (value: unknown) => value is WeakSet<object>, | ||
isRegExp: (value: unknown) => RegExp, | ||
isDate: (value: unknown) => Date, | ||
isTypedArray: (value: unknown) => value is TypedArray, | ||
isStringObject: (value: unknown) => value is String, | ||
isNumberObject: (value: unknown) => value is Number, | ||
isBooleanObject: (value: unknown) => value is Boolean, | ||
isBigIntObject: (value: unknown) => value is BigInt, | ||
}; |