Skip to content

Commit

Permalink
Merge pull request #13 from hcodes/fix_typings
Browse files Browse the repository at this point in the history
Fixes for typings
  • Loading branch information
hcodes authored Sep 24, 2020
2 parents f76c882 + 4798cf9 commit 6aacc3b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@

# Changelog

## v3.1.1
- Fixes for typings.

## v3.1.0
- Add support for ES modules.

Expand Down
3 changes: 2 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@
"allowJs": false,
"declaration": true,
"target": "es6",
"outDir": "./lib",
"outDir": "./dist",
"lib": [
"es6",
],
"esModuleInterop": true,
"strict": true,
"alwaysStrict": true,
"strictFunctionTypes": true,
Expand Down

0 comments on commit 6aacc3b

Please sign in to comment.