Skip to content

Commit

Permalink
🏷️ Export types
Browse files Browse the repository at this point in the history
  • Loading branch information
laymonage committed Feb 3, 2022
1 parent 317e7aa commit f4c9045
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 2 deletions.
12 changes: 11 additions & 1 deletion packages/@shared/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
11 changes: 10 additions & 1 deletion packages/react/lib/index.ts
Original file line number Diff line number Diff line change
@@ -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'
11 changes: 11 additions & 0 deletions packages/svelte/lib/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
import Giscus from './Giscus.svelte'

export { Giscus }

export type {
GiscusProps,
BooleanString,
InputPosition,
Session,
Repo,
Mapping,
Theme,
Lang
} from '@shared/types'
11 changes: 11 additions & 0 deletions packages/vue/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,14 @@ const plugin: Plugin = {
}

export { Giscus, plugin }

export type {
GiscusProps,
BooleanString,
InputPosition,
Session,
Repo,
Mapping,
Theme,
Lang
} from '@shared/types'

0 comments on commit f4c9045

Please sign in to comment.