📄 context.d.ts
/home/palash/git/site/node_modules/@msgpack/msgpack/dist/context.d.ts
Language: ts • Lines: 8
export declare type SplitTypes<T, U> = U extends T ? (Exclude<T, U> extends never ? T : Exclude<T, U>) : T;
export declare type SplitUndefined<T> = SplitTypes<T, undefined>;
export declare type ContextOf<ContextType> = ContextType extends undefined ? {} : {
    /**
     * Custom user-defined data, read/writable
     */
    context: ContextType;
};