UNPKG

394 BTypeScriptView Raw
1/**
2 * Generic interface for types supporting metadata. Implementations MUST
3 * exclude metadata from any comparisons, equality checks & hashing.
4 */
5export interface IMeta<T> {
6 meta(): any;
7 /**
8 * Returns a copy of the original value with given metadata
9 * attached.
10 *
11 * @param meta - meta data
12 */
13 withMeta(meta: any): T;
14}
15//# sourceMappingURL=meta.d.ts.map
\No newline at end of file