From 53ef61d683048e5bbe8c6d5808114ffa81491abb Mon Sep 17 00:00:00 2001 From: Fuxing Loh Date: Fri, 10 Nov 2023 12:10:25 +0800 Subject: [PATCH] fix types --- packages/crypto-frontmatter/src/content.ts | 2 -- packages/crypto-frontmatter/src/index.ts | 2 ++ website/components/contented/FrontmatterImage.tsx | 2 +- workspace/contented-config/index.mjs | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/crypto-frontmatter/src/content.ts b/packages/crypto-frontmatter/src/content.ts index 363884c4b..0f987766d 100644 --- a/packages/crypto-frontmatter/src/content.ts +++ b/packages/crypto-frontmatter/src/content.ts @@ -6,8 +6,6 @@ import { FrontmatterIndex, getFrontmatterCollection } from './index'; export interface FrontmatterContent extends FrontmatterIndex { html: string; - caip2: string; - namespace: string; } /** diff --git a/packages/crypto-frontmatter/src/index.ts b/packages/crypto-frontmatter/src/index.ts index 8f4f98976..66ab7747e 100644 --- a/packages/crypto-frontmatter/src/index.ts +++ b/packages/crypto-frontmatter/src/index.ts @@ -21,6 +21,8 @@ export interface FrontmatterIndex { modifiedDate: number; type: string; fields: { + caip2: string; + namespace: string; symbol: string; decimals: number; title?: string; diff --git a/website/components/contented/FrontmatterImage.tsx b/website/components/contented/FrontmatterImage.tsx index 6fc6eaec4..6dd198120 100644 --- a/website/components/contented/FrontmatterImage.tsx +++ b/website/components/contented/FrontmatterImage.tsx @@ -11,7 +11,7 @@ export function FrontmatterImage(props: { frontmatter: FrontmatterIndex; type: ' return (