UNPKG

integreat

Version:
25 lines (24 loc) 1.74 kB
import { TypedData, Reference, Action, Response, Ident } from '../types.js'; import type { ShapeDef, FieldDefinition } from '../schema/types.js'; export declare const isObject: (value: unknown) => value is Record<string, unknown>; export declare const isDate: (value: unknown) => value is Date; export declare const isEmptyObject: (value: unknown) => value is object; export declare const isTypedData: (value: unknown) => value is TypedData; export declare const isReference: (value: unknown) => value is Reference; export declare const isShape: (value: unknown) => value is ShapeDef; export declare const isFieldDefinition: (value: unknown) => value is FieldDefinition; export declare const isNullOrUndefined: (value: unknown) => value is null | undefined; export declare const isNotNullOrUndefined: <T>(value: T) => value is NonNullable<T>; export declare const isAction: (action: unknown) => action is Action; export declare const isOkStatus: (status?: string) => boolean; export declare const isOkResponse: (response?: Response) => response is Response; export declare const isErrorResponse: (response?: Response) => boolean; export declare const isTruthy: (value: unknown) => boolean; export declare const isFalsy: (value: unknown) => boolean; export declare const not: (value: unknown) => boolean; export declare const isDuplicate: <T = unknown>(error: T, index: number, errors: T[]) => boolean; export declare const isCustomIdent: (ident?: Ident) => boolean; export declare const isInternalIdent: (ident?: Ident) => boolean; export declare const isRootIdent: (ident?: Ident) => boolean | undefined; export declare const isSchedulerIdent: (ident?: Ident) => boolean; export declare const isAnonIdent: (ident?: Ident) => boolean;