Skip to content

Commit 6aacc3b

Browse files
authored
Merge pull request #13 from hcodes/fix_typings
Fixes for typings
2 parents f76c882 + 4798cf9 commit 6aacc3b

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1+
12
# Changelog
23

4+
## v3.1.1
5+
- Fixes for typings.
6+
37
## v3.1.0
48
- Add support for ES modules.
59

index.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
/**
33
* Check if a Node.js Buffer or Uint8Array is UTF-8.
44
*/
5-
export default function isUtf8(buf?: Buffer | Uint8Array): boolean;
5+
declare function isUtf8(buf?: Buffer | Uint8Array): boolean;
6+
export = isUtf8;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "isutf8",
33
"description": "Check if a Node.js Buffer or Uint8Array is utf-8",
4-
"version": "3.1.0",
4+
"version": "3.1.1",
55
"author": {
66
"name": "Denis Seleznev",
77
"email": "[email protected]",

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@
66
"allowJs": false,
77
"declaration": true,
88
"target": "es6",
9-
"outDir": "./lib",
9+
"outDir": "./dist",
1010
"lib": [
1111
"es6",
1212
],
13+
"esModuleInterop": true,
1314
"strict": true,
1415
"alwaysStrict": true,
1516
"strictFunctionTypes": true,

0 commit comments

Comments
 (0)