UNPKG

algo-msgpack-with-bigint

Version:

MessagePack for JavaScript/ECMA-262, with changed behavior for BigInts

9 lines (8 loc) 314 B
export declare type SplitTypes<T, U> = U extends T ? U : Exclude<T, U>; export declare type SplitUndefined<T> = SplitTypes<T, undefined>; export declare type ContextOf<ContextType> = ContextType extends undefined ? {} : { /** * Custom user-defined data, read/writable */ context: ContextType; };