Skip to content

Commit

Permalink
Use ESM-friendly imports and file extensions for TS, #75
Browse files Browse the repository at this point in the history
  • Loading branch information
kriszyp committed Aug 13, 2022
1 parent aa3252d commit b372fe7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions index.d.ts → index.d.mts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ export {
clearSource,
roundFloat32,
isNativeAccelerationEnabled,
} from './unpack'
import { Options } from './unpack'
export { Packr, Encoder, pack, encode } from './pack'
} from './unpack.js'
import { Options } from './unpack.js'
export { Packr, Encoder, pack, encode } from './pack.js'
import { Transform, Readable } from 'stream'

export as namespace msgpackr;
Expand Down
4 changes: 2 additions & 2 deletions pack.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Unpackr } from './unpack'
export { addExtension, FLOAT32_OPTIONS } from './unpack'
import { Unpackr } from './unpack.js'
export { addExtension, FLOAT32_OPTIONS } from './unpack.js'
export class Packr extends Unpackr {
pack(value: any): Buffer
encode(value: any): Buffer
Expand Down

0 comments on commit b372fe7

Please sign in to comment.