From f4c9045fa65f8ef65d526d0ab3a818930a2f7554 Mon Sep 17 00:00:00 2001 From: sage Date: Thu, 3 Feb 2022 18:26:27 +0700 Subject: [PATCH] :label: Export types --- packages/@shared/types.ts | 12 +++++++++++- packages/react/lib/index.ts | 11 ++++++++++- packages/svelte/lib/index.ts | 11 +++++++++++ packages/vue/lib/index.ts | 11 +++++++++++ 4 files changed, 43 insertions(+), 2 deletions(-) diff --git a/packages/@shared/types.ts b/packages/@shared/types.ts index f65fd6f3..62c23730 100644 --- a/packages/@shared/types.ts +++ b/packages/@shared/types.ts @@ -59,4 +59,14 @@ type Lang = | 'zh-TW' | GenericString -export type { GiscusProps, Giscus, Session, Repo, Mapping, Theme } +export type { + GiscusProps, + Giscus, + BooleanString, + InputPosition, + Session, + Repo, + Mapping, + Theme, + Lang +} diff --git a/packages/react/lib/index.ts b/packages/react/lib/index.ts index b7891a76..21ff746e 100644 --- a/packages/react/lib/index.ts +++ b/packages/react/lib/index.ts @@ -1,4 +1,13 @@ import Giscus from './Giscus' export { Giscus } -export type { GiscusProps, Session, Repo, Mapping, Theme } from '@shared/types' +export type { + GiscusProps, + BooleanString, + InputPosition, + Session, + Repo, + Mapping, + Theme, + Lang +} from '@shared/types' diff --git a/packages/svelte/lib/index.ts b/packages/svelte/lib/index.ts index 6ea11328..58c2fe94 100644 --- a/packages/svelte/lib/index.ts +++ b/packages/svelte/lib/index.ts @@ -1,3 +1,14 @@ import Giscus from './Giscus.svelte' export { Giscus } + +export type { + GiscusProps, + BooleanString, + InputPosition, + Session, + Repo, + Mapping, + Theme, + Lang +} from '@shared/types' diff --git a/packages/vue/lib/index.ts b/packages/vue/lib/index.ts index ac0cac90..4cf45b04 100644 --- a/packages/vue/lib/index.ts +++ b/packages/vue/lib/index.ts @@ -6,3 +6,14 @@ const plugin: Plugin = { } export { Giscus, plugin } + +export type { + GiscusProps, + BooleanString, + InputPosition, + Session, + Repo, + Mapping, + Theme, + Lang +} from '@shared/types'