7 lines
255 B
TypeScript
7 lines
255 B
TypeScript
/**
|
|
* Returns whether the payload is a primitive type (eg. Boolean | Null | Undefined | Number | String
|
|
*
|
|
* | Symbol)
|
|
*/
|
|
export declare function isPrimitive(payload: unknown): payload is boolean | null | undefined | number | string | symbol | bigint;
|