UNPKG

@atlaskit/adf-utils

Version:

Set of utilities to traverse, modify and create ADF documents.

9 lines (8 loc) 614 B
export declare const isDefined: <T>(x: T) => x is NonNullable<T>; export declare const isNumber: (x: unknown) => x is number; export declare const isInteger: (x: unknown) => x is number; export declare const isBoolean: (x: unknown) => x is boolean; export declare const isString: (s: unknown) => s is string; export declare const isPlainObject: (x: unknown) => boolean; export declare const copy: <T extends Record<string | number, any> = Record<string | number, any>>(source: Record<string | number, any>, dest: T, key: string | number) => T; export declare const makeArray: <T>(maybeArray: T | Array<T>) => T[];