diff --git a/hyperdata/src/create.ts b/hyperdata/src/create.ts new file mode 100644 index 00000000..de9155e7 --- /dev/null +++ b/hyperdata/src/create.ts @@ -0,0 +1,11 @@ +import { contentFrom } from './normalize' +import { + Content, + KodaMetadata +} from './types' + +export function createContent(metadata: T): Content { + const content = contentFrom(metadata) + // TODO: do validation here + return content +} diff --git a/hyperdata/src/types.ts b/hyperdata/src/types.ts index 1dfc2ff8..d94cb990 100644 --- a/hyperdata/src/types.ts +++ b/hyperdata/src/types.ts @@ -38,6 +38,7 @@ export type OpenSeaMetadata = BaseMetadata & export type KodaMetadata = OpenSeaMetadata & { banner?: string + type?: string } export type TezosAttribute = {