UNPKG

589 BTypeScriptView Raw
1import type { ShareableRef } from './commonTypes';
2/**
3 * This symbol is used to represent a mapping from the value to itself.
4 *
5 * It's used to prevent converting a shareable that's already converted - for
6 * example a Shared Value that's in worklet's closure.
7 */
8export declare const shareableMappingFlag: unique symbol;
9export declare const shareableMappingCache: {
10 set(): void;
11 get(): null;
12} | {
13 set(shareable: object, shareableRef?: ShareableRef): void;
14 get: (key: object) => symbol | ShareableRef | undefined;
15};
16//# sourceMappingURL=shareableMappingCache.d.ts.map
\No newline at end of file