Abstract
Private
constructorStatic
arrayStatic
booleanStatic
dateStatic
functionStatic
nullStatic
numberStatic
objectStatic
processStatic
promiseType-check value
for Promise<unknown>
.
The value
to type-check.
Whether value
is of type Promise<unknown>
.
Type-check null
for Promise<unknown>
:
import { TypeOf } from '@sgrud/core';
TypeOf.promise(null); // false
Static
regexStatic
stringStatic
undefinedStatic
urlStatic
windowStatic
Private
testGenerated using TypeDoc
Strict type-assertion and runtime type-checking utility. When type-checking variables in the global scope, e.g.,
window
orprocess
, make use of theglobalThis
object.Example
Type-check global context: