@gravity-ui/data-source
Version:
A wrapper around data fetching
5 lines (4 loc) • 352 B
TypeScript
export declare const undefinedSymbol: unique symbol;
export declare const nullSymbol: unique symbol;
export declare const formatNullableValue: <T>(value: T | undefined | null) => T | typeof undefinedSymbol | typeof nullSymbol;
export declare const parseNullableValue: <T>(value: T | typeof undefinedSymbol | typeof nullSymbol) => T | undefined | null;