- Preparing search index...
- The search index is not available
sdk-v2
- createStorage<M>(storage: Storage<any, any>): MetadataStorage<M>
-
Type Parameters
-
M extends TaggedMetadata<"markets"> = {
__meta: "markets";
categories: undefined | ({ name: string; img?: string | undefined; ticker?: string | undefined; color?: string | undefined; })[];
confidentialId: undefined | string;
description: string;
img: undefined | string;
question: string;
scalarType: undefined | "number" | "date";
slug: string;
tags: undefined | string[];
}
Parameters
-
storage: Storage<any, any>
Utility for creating typed and tagged metadata storage.
Generic
M extends TaggedMetadata<'markets'> = MarketMetadata - market metadata
Generic
C extends TaggedMetadata<'comments'> = CommentMetadata - comment metadata
Returns