1 | export const isString = (x: unknown): x is string => typeof x === 'string'
|
2 | export const isBoolean = (x: unknown): x is boolean => typeof x === 'boolean'
|
3 | export const isFunction = (x: unknown): x is Function => typeof x === 'function'
|
4 | export const isObject = (params: any): params is object => typeof params === 'object' && params !== null
|
5 | export const ERROR = 'Error'
|
6 | export const undefined = void 0
|
7 | export const Object_setPrototypeOf = Object.setPrototypeOf
|
8 | export const Promise_reject = (x: any) => Promise.reject(x)
|
9 | export const Promise_resolve = <T>(x: T) => Promise.resolve(x)
|
10 | export const isArray = Array.isArray
|
11 | export const replayFunction = () => '() => replay()'
|