diff --git a/CHANGELOG.md b/CHANGELOG.md index f59aef0..2fc2f2e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ + # Changelog +## v3.1.1 +- Fixes for typings. + ## v3.1.0 - Add support for ES modules. diff --git a/index.d.ts b/index.d.ts index 327bbc1..50c48bd 100644 --- a/index.d.ts +++ b/index.d.ts @@ -2,4 +2,5 @@ /** * Check if a Node.js Buffer or Uint8Array is UTF-8. */ -export default function isUtf8(buf?: Buffer | Uint8Array): boolean; +declare function isUtf8(buf?: Buffer | Uint8Array): boolean; +export = isUtf8; diff --git a/package.json b/package.json index 3458ebd..b22ec91 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "isutf8", "description": "Check if a Node.js Buffer or Uint8Array is utf-8", - "version": "3.1.0", + "version": "3.1.1", "author": { "name": "Denis Seleznev", "email": "hcodes@yandex.ru", diff --git a/tsconfig.json b/tsconfig.json index ff081b5..8207eb9 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,10 +6,11 @@ "allowJs": false, "declaration": true, "target": "es6", - "outDir": "./lib", + "outDir": "./dist", "lib": [ "es6", ], + "esModuleInterop": true, "strict": true, "alwaysStrict": true, "strictFunctionTypes": true,