@petsel/es-type-detection - v1.0.0
Preparing search index...
index
default
Variable default
default
:
{
base
:
{
isBigInt
:
(
value
?:
any
)
=>
value
is
BigIntType
;
isBigIntValue
:
(
value
?:
any
)
=>
value
is
BigIntValue
;
isBoolean
:
(
value
?:
any
)
=>
value
is
BooleanType
;
isBooleanValue
:
(
value
?:
any
)
=>
value
is
BooleanValue
;
isBoxedBigInt
:
(
value
?:
any
)
=>
value
is
BoxedBigInt
;
isBoxedBoolean
:
(
value
?:
any
)
=>
value
is
BoxedBoolean
;
isBoxedNumber
:
(
value
?:
any
)
=>
value
is
BoxedNumber
;
isBoxedString
:
(
value
?:
any
)
=>
value
is
BoxedString
;
isBoxedSymbol
:
(
value
?:
any
)
=>
value
is
BoxedSymbol
;
isDictionaryObject
:
(
value
?:
any
)
=>
value
is
DictionaryObject
;
isFunction
:
(
value
?:
any
)
=>
value
is
Function
;
isNumber
:
(
value
?:
any
)
=>
value
is
NumberType
;
isNumberValue
:
(
value
?:
any
)
=>
value
is
NumberValue
;
isObject
:
(
value
?:
any
)
=>
value
is
AnyObject
;
isObjectObject
:
(
value
?:
any
)
=>
value
is
PlainObject
;
isString
:
(
value
?:
any
)
=>
value
is
StringType
;
isStringValue
:
(
value
?:
any
)
=>
value
is
StringValue
;
isSymbol
:
(
value
?:
any
)
=>
value
is
SymbolType
;
isSymbolValue
:
(
value
?:
any
)
=>
value
is
SymbolValue
;
}
;
error
:
{
isAggregateError
:
(
value
?:
any
)
=>
value
is
AggregateError
;
isError
:
(
value
?:
any
)
=>
value
is
AnyError
;
isErrorError
:
(
value
?:
any
)
=>
value
is
PlainError
;
isEvalError
:
(
value
?:
any
)
=>
value
is
EvalError
;
isRangeError
:
(
value
?:
any
)
=>
value
is
RangeError
;
isReferenceError
:
(
value
?:
any
)
=>
value
is
ReferenceError
;
isSyntaxError
:
(
value
?:
any
)
=>
value
is
SyntaxError
;
isTypeError
:
(
value
?:
any
)
=>
value
is
TypeError
;
isURIError
:
(
value
?:
any
)
=>
value
is
URIError
;
}
;
flow
:
{
doesMatchSafeThenable
:
(
value
?:
any
)
=>
value
is
Thenable
;
doesMatchThenable
:
(
value
?:
any
)
=>
value
is
Thenable
;
isAnyGenerator
:
(
value
?:
any
)
=>
value
is
AnyGenerator
;
isAsyncGenerator
:
(
value
?:
any
)
=>
value
is
AsyncGenerator
;
isGenerator
:
(
value
?:
any
)
=>
value
is
Generator
;
isPromise
:
(
value
?:
any
)
=>
value
is
Promise
<
any
>
;
}
;
fn
:
{
isAnyGeneratorFunction
:
(
value
?:
any
)
=>
value
is
AnyGeneratorFunction
;
isArrow
:
(
value
?:
any
)
=>
value
is
AnyArrow
;
isAsyncArrow
:
(
value
?:
any
)
=>
value
is
AsyncFunction
;
isAsyncFunction
:
(
value
?:
any
)
=>
value
is
AsyncFunction
;
isAsyncGeneratorFunction
:
(
value
?:
any
)
=>
value
is
AsyncGeneratorFunction
;
isAsyncNonArrow
:
(
value
?:
any
)
=>
value
is
AsyncFunction
;
isClass
:
(
value
?:
any
)
=>
value
is
ClassConstructor
<
FunctionConstructor
>
;
isConciseGenericMethod
:
(
value
?:
any
)
=>
value
is
ConciseGenericMethod
;
isConstructable
:
(
value
:
any
)
=>
boolean
;
isES3Function
:
(
value
?:
any
)
=>
value
is
ES3Function
;
isGeneratorFunction
:
(
value
?:
any
)
=>
value
is
GeneratorFunction
;
isGenericFunction
:
(
value
?:
any
)
=>
value
is
NonAsyncArrow
|
ES3Function
;
isNonAsyncArrow
:
(
value
?:
any
)
=>
value
is
NonAsyncArrow
;
isUnnamedFunction
:
(
value
?:
any
)
=>
value
is
UnnamedFunction
;
}
;
identity
:
{
defineStableTypeIdentity
:
(
constructor
:
ES3Function
|
ClassConstructor
,
constructorName
:
string
,
taggedType
?:
string
,
)
=>
boolean
;
hasBuiltinTypeIdentity
:
(
...
args
:
any
[]
)
=>
boolean
;
hasCustomTypeIdentity
:
(
...
args
:
any
[]
)
=>
boolean
;
hasStableTypeIdentity
:
(
...
args
:
any
[]
)
=>
boolean
;
}
;
utility
:
{
getDefinedConstructor
:
(
value
?:
any
,
)
=>
NewableFunction
|
ES3Function
|
ClassConstructor
;
getDefinedConstructorName
:
(
value
?:
any
)
=>
string
;
getTaggedType
:
(
...
args
:
any
[]
)
=>
string
;
getTypeSignature
:
(
...
args
:
any
[]
)
=>
string
;
hasConstructSlot
:
(
value
:
any
)
=>
boolean
;
hasOwnPrototype
:
(
value
:
Function
)
=>
boolean
;
hasOwnWritablePrototype
:
(
value
:
Function
)
=>
boolean
;
resolveType
:
(
...
args
:
any
[]
)
=>
string
;
}
;
}
Type declaration
base
:
{
isBigInt
:
(
value
?:
any
)
=>
value
is
BigIntType
;
isBigIntValue
:
(
value
?:
any
)
=>
value
is
BigIntValue
;
isBoolean
:
(
value
?:
any
)
=>
value
is
BooleanType
;
isBooleanValue
:
(
value
?:
any
)
=>
value
is
BooleanValue
;
isBoxedBigInt
:
(
value
?:
any
)
=>
value
is
BoxedBigInt
;
isBoxedBoolean
:
(
value
?:
any
)
=>
value
is
BoxedBoolean
;
isBoxedNumber
:
(
value
?:
any
)
=>
value
is
BoxedNumber
;
isBoxedString
:
(
value
?:
any
)
=>
value
is
BoxedString
;
isBoxedSymbol
:
(
value
?:
any
)
=>
value
is
BoxedSymbol
;
isDictionaryObject
:
(
value
?:
any
)
=>
value
is
DictionaryObject
;
isFunction
:
(
value
?:
any
)
=>
value
is
Function
;
isNumber
:
(
value
?:
any
)
=>
value
is
NumberType
;
isNumberValue
:
(
value
?:
any
)
=>
value
is
NumberValue
;
isObject
:
(
value
?:
any
)
=>
value
is
AnyObject
;
isObjectObject
:
(
value
?:
any
)
=>
value
is
PlainObject
;
isString
:
(
value
?:
any
)
=>
value
is
StringType
;
isStringValue
:
(
value
?:
any
)
=>
value
is
StringValue
;
isSymbol
:
(
value
?:
any
)
=>
value
is
SymbolType
;
isSymbolValue
:
(
value
?:
any
)
=>
value
is
SymbolValue
;
}
isBigInt
:
(
value
?:
any
)
=>
value
is
BigIntType
isBigIntValue
:
(
value
?:
any
)
=>
value
is
BigIntValue
isBoolean
:
(
value
?:
any
)
=>
value
is
BooleanType
isBooleanValue
:
(
value
?:
any
)
=>
value
is
BooleanValue
isBoxedBigInt
:
(
value
?:
any
)
=>
value
is
BoxedBigInt
isBoxedBoolean
:
(
value
?:
any
)
=>
value
is
BoxedBoolean
isBoxedNumber
:
(
value
?:
any
)
=>
value
is
BoxedNumber
isBoxedString
:
(
value
?:
any
)
=>
value
is
BoxedString
isBoxedSymbol
:
(
value
?:
any
)
=>
value
is
BoxedSymbol
isDictionaryObject
:
(
value
?:
any
)
=>
value
is
DictionaryObject
isFunction
:
(
value
?:
any
)
=>
value
is
Function
isNumber
:
(
value
?:
any
)
=>
value
is
NumberType
isNumberValue
:
(
value
?:
any
)
=>
value
is
NumberValue
isObject
:
(
value
?:
any
)
=>
value
is
AnyObject
isObjectObject
:
(
value
?:
any
)
=>
value
is
PlainObject
isString
:
(
value
?:
any
)
=>
value
is
StringType
isStringValue
:
(
value
?:
any
)
=>
value
is
StringValue
isSymbol
:
(
value
?:
any
)
=>
value
is
SymbolType
isSymbolValue
:
(
value
?:
any
)
=>
value
is
SymbolValue
error
:
{
isAggregateError
:
(
value
?:
any
)
=>
value
is
AggregateError
;
isError
:
(
value
?:
any
)
=>
value
is
AnyError
;
isErrorError
:
(
value
?:
any
)
=>
value
is
PlainError
;
isEvalError
:
(
value
?:
any
)
=>
value
is
EvalError
;
isRangeError
:
(
value
?:
any
)
=>
value
is
RangeError
;
isReferenceError
:
(
value
?:
any
)
=>
value
is
ReferenceError
;
isSyntaxError
:
(
value
?:
any
)
=>
value
is
SyntaxError
;
isTypeError
:
(
value
?:
any
)
=>
value
is
TypeError
;
isURIError
:
(
value
?:
any
)
=>
value
is
URIError
;
}
isAggregateError
:
(
value
?:
any
)
=>
value
is
AggregateError
isError
:
(
value
?:
any
)
=>
value
is
AnyError
isErrorError
:
(
value
?:
any
)
=>
value
is
PlainError
isEvalError
:
(
value
?:
any
)
=>
value
is
EvalError
isRangeError
:
(
value
?:
any
)
=>
value
is
RangeError
isReferenceError
:
(
value
?:
any
)
=>
value
is
ReferenceError
isSyntaxError
:
(
value
?:
any
)
=>
value
is
SyntaxError
isTypeError
:
(
value
?:
any
)
=>
value
is
TypeError
isURIError
:
(
value
?:
any
)
=>
value
is
URIError
flow
:
{
doesMatchSafeThenable
:
(
value
?:
any
)
=>
value
is
Thenable
;
doesMatchThenable
:
(
value
?:
any
)
=>
value
is
Thenable
;
isAnyGenerator
:
(
value
?:
any
)
=>
value
is
AnyGenerator
;
isAsyncGenerator
:
(
value
?:
any
)
=>
value
is
AsyncGenerator
;
isGenerator
:
(
value
?:
any
)
=>
value
is
Generator
;
isPromise
:
(
value
?:
any
)
=>
value
is
Promise
<
any
>
;
}
doesMatchSafeThenable
:
(
value
?:
any
)
=>
value
is
Thenable
doesMatchThenable
:
(
value
?:
any
)
=>
value
is
Thenable
isAnyGenerator
:
(
value
?:
any
)
=>
value
is
AnyGenerator
isAsyncGenerator
:
(
value
?:
any
)
=>
value
is
AsyncGenerator
isGenerator
:
(
value
?:
any
)
=>
value
is
Generator
isPromise
:
(
value
?:
any
)
=>
value
is
Promise
<
any
>
fn
:
{
isAnyGeneratorFunction
:
(
value
?:
any
)
=>
value
is
AnyGeneratorFunction
;
isArrow
:
(
value
?:
any
)
=>
value
is
AnyArrow
;
isAsyncArrow
:
(
value
?:
any
)
=>
value
is
AsyncFunction
;
isAsyncFunction
:
(
value
?:
any
)
=>
value
is
AsyncFunction
;
isAsyncGeneratorFunction
:
(
value
?:
any
)
=>
value
is
AsyncGeneratorFunction
;
isAsyncNonArrow
:
(
value
?:
any
)
=>
value
is
AsyncFunction
;
isClass
:
(
value
?:
any
)
=>
value
is
ClassConstructor
<
FunctionConstructor
>
;
isConciseGenericMethod
:
(
value
?:
any
)
=>
value
is
ConciseGenericMethod
;
isConstructable
:
(
value
:
any
)
=>
boolean
;
isES3Function
:
(
value
?:
any
)
=>
value
is
ES3Function
;
isGeneratorFunction
:
(
value
?:
any
)
=>
value
is
GeneratorFunction
;
isGenericFunction
:
(
value
?:
any
)
=>
value
is
NonAsyncArrow
|
ES3Function
;
isNonAsyncArrow
:
(
value
?:
any
)
=>
value
is
NonAsyncArrow
;
isUnnamedFunction
:
(
value
?:
any
)
=>
value
is
UnnamedFunction
;
}
isAnyGeneratorFunction
:
(
value
?:
any
)
=>
value
is
AnyGeneratorFunction
isArrow
:
(
value
?:
any
)
=>
value
is
AnyArrow
isAsyncArrow
:
(
value
?:
any
)
=>
value
is
AsyncFunction
isAsyncFunction
:
(
value
?:
any
)
=>
value
is
AsyncFunction
isAsyncGeneratorFunction
:
(
value
?:
any
)
=>
value
is
AsyncGeneratorFunction
isAsyncNonArrow
:
(
value
?:
any
)
=>
value
is
AsyncFunction
isClass
:
(
value
?:
any
)
=>
value
is
ClassConstructor
<
FunctionConstructor
>
isConciseGenericMethod
:
(
value
?:
any
)
=>
value
is
ConciseGenericMethod
isConstructable
:
(
value
:
any
)
=>
boolean
isES3Function
:
(
value
?:
any
)
=>
value
is
ES3Function
isGeneratorFunction
:
(
value
?:
any
)
=>
value
is
GeneratorFunction
isGenericFunction
:
(
value
?:
any
)
=>
value
is
NonAsyncArrow
|
ES3Function
isNonAsyncArrow
:
(
value
?:
any
)
=>
value
is
NonAsyncArrow
isUnnamedFunction
:
(
value
?:
any
)
=>
value
is
UnnamedFunction
identity
:
{
defineStableTypeIdentity
:
(
constructor
:
ES3Function
|
ClassConstructor
,
constructorName
:
string
,
taggedType
?:
string
,
)
=>
boolean
;
hasBuiltinTypeIdentity
:
(
...
args
:
any
[]
)
=>
boolean
;
hasCustomTypeIdentity
:
(
...
args
:
any
[]
)
=>
boolean
;
hasStableTypeIdentity
:
(
...
args
:
any
[]
)
=>
boolean
;
}
defineStableTypeIdentity
:
(
constructor
:
ES3Function
|
ClassConstructor
,
constructorName
:
string
,
taggedType
?:
string
,
)
=>
boolean
hasBuiltinTypeIdentity
:
(
...
args
:
any
[]
)
=>
boolean
hasCustomTypeIdentity
:
(
...
args
:
any
[]
)
=>
boolean
hasStableTypeIdentity
:
(
...
args
:
any
[]
)
=>
boolean
utility
:
{
getDefinedConstructor
:
(
value
?:
any
,
)
=>
NewableFunction
|
ES3Function
|
ClassConstructor
;
getDefinedConstructorName
:
(
value
?:
any
)
=>
string
;
getTaggedType
:
(
...
args
:
any
[]
)
=>
string
;
getTypeSignature
:
(
...
args
:
any
[]
)
=>
string
;
hasConstructSlot
:
(
value
:
any
)
=>
boolean
;
hasOwnPrototype
:
(
value
:
Function
)
=>
boolean
;
hasOwnWritablePrototype
:
(
value
:
Function
)
=>
boolean
;
resolveType
:
(
...
args
:
any
[]
)
=>
string
;
}
getDefinedConstructor
:
(
value
?:
any
)
=>
NewableFunction
|
ES3Function
|
ClassConstructor
getDefinedConstructorName
:
(
value
?:
any
)
=>
string
getTaggedType
:
(
...
args
:
any
[]
)
=>
string
getTypeSignature
:
(
...
args
:
any
[]
)
=>
string
hasConstructSlot
:
(
value
:
any
)
=>
boolean
hasOwnPrototype
:
(
value
:
Function
)
=>
boolean
hasOwnWritablePrototype
:
(
value
:
Function
)
=>
boolean
resolveType
:
(
...
args
:
any
[]
)
=>
string
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
@petsel/es-type-detection - v1.0.0
Loading...