Skip to content

Commit

Permalink
chore: improve typescript definition
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack-Works committed Oct 13, 2022
1 parent e4ef122 commit 623d96b
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
5 changes: 5 additions & 0 deletions .changeset/afraid-seas-confess.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@dimensiondev/stego-js': patch
---

improve typescript definition
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"module": "./esm/node.js",
"browser": "./esm/dom.js",
"bin": "./esm/cli/cli.js",
"types": "./esm/dom.js",
"scripts": {
"build": "pnpm run build:umd && pnpm run build:dist",
"build:dist": "tsc -b ./tsconfig.json ./tests/tsconfig.json",
Expand Down
2 changes: 1 addition & 1 deletion src/dom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { createAPI } from './utils/expose.js'
import { getImageType } from './utils/helper.js'
import { preprocessImage } from './utils/image.js'

export { getImageType }
export { getImageType } from './utils/helper.js'
export * from './utils/types.js'
export * from './constant.js'

Expand Down
6 changes: 0 additions & 6 deletions src/module.d.ts

This file was deleted.

3 changes: 1 addition & 2 deletions src/node.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { JsColorType, Transformer } from '@napi-rs/image'
import { randomFillSync } from 'crypto'
import { createAPI } from './utils/expose.js'
import { getImageType } from './utils/helper.js'
import { preprocessImage } from './utils/image.js'

export { getImageType }
export { getImageType } from './utils/helper.js'
export * from './utils/types.js'
export * from './constant.js'

Expand Down

0 comments on commit 623d96b

Please # to comment.