Function createStorage

  • 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

    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>

      Storage<any, any>

    Returns MetadataStorage<M>

Generated using TypeDoc