Skip to content

Commit

Permalink
feat: export interfaces (#120)
Browse files Browse the repository at this point in the history
* fix: add type guard for jest test case

* feat: export interfaces
  • Loading branch information
iamskok authored Mar 23, 2022
1 parent dcae030 commit 4bc94fb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@
"prettier": "2.4.1",
"react-test-renderer": "17.0.2",
"semantic-release": "18.0.0",
"ts-jest": "27.0.7",
"typescript": "4.5.4"
"ts-jest": "27.0.4",
"typescript": "4.4.3"
},
"peerDependencies": {
"react": "^16.8.0 || ^17.0.0 || ^18.0.0"
Expand Down
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import FontFaceObserver from "fontfaceobserver"
* @property {string} style The font-style: normal, italic, oblique
* @property {string} stretch The font stretch: normal, condensed, expanded, etc
*/
interface FontFace {
export interface FontFace {
family: string
weight?:
| `light`
Expand Down Expand Up @@ -37,12 +37,12 @@ interface FontFace {
| `ultra-expanded`
}

interface Options {
export interface Options {
testString?: string
timeout?: number
}

interface Config {
export interface Config {
showErrors: boolean
}

Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9135,10 +9135,10 @@ typedarray-to-buffer@^3.1.5:
dependencies:
is-typedarray "^1.0.0"

typescript@4.5.4:
version "4.5.4"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.5.4.tgz#a17d3a0263bf5c8723b9c52f43c5084edf13c2e8"
integrity sha512-VgYs2A2QIRuGphtzFV7aQJduJ2gyfTljngLzjpfW9FoYZF6xuw1W0vW9ghCKLfcWrCFxK81CSGRAvS1pn4fIUg==
typescript@4.4.3:
version "4.4.3"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.4.3.tgz#bdc5407caa2b109efd4f82fe130656f977a29324"
integrity sha512-4xfscpisVgqqDfPaJo5vkd+Qd/ItkoagnHpufr+i2QCHBsNYp+G7UAoyFl8aPtx879u38wPV65rZ8qbGZijalA==

typescript@^4.1.3:
version "4.3.2"
Expand Down

0 comments on commit 4bc94fb

Please sign in to comment.