Skip to content

Commit 091593f

Browse files
Move to the types directory
1 parent e2db3dd commit 091593f

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
"url": "git+https://github.com/LangZhai/json-bufferify.git"
1818
},
1919
"bugs": {
20-
"url": "https://github.com/LangZhai/json-bufferify/issues"
20+
"url": "https://github.com/LangZhai/json-bufferify/issues",
21+
"email": "zl2012xyz@hotmail.com"
2122
},
2223
"homepage": "https://langzhai.github.io/json-bufferify",
2324
"main": "dist/json-bufferify.min.js",
24-
"types": "dist/json-bufferify.d.ts",
2525
"scripts": {
2626
"test": "node test"
2727
}

types/json-bufferify.d.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/**
2+
* json-bufferify 0.2.0
3+
* Date: 2020-10-13
4+
* © 2017-2020 LangZhai(智能小菜菜)
5+
* This is licensed under the GNU LGPL, version 3 or later.
6+
* For details, see: https://www.gnu.org/licenses/lgpl.html
7+
* Project home: https://github.com/LangZhai/json-bufferify
8+
*/
9+
10+
declare module 'json-bufferify' {
11+
export function encode(offset: number, data: Object): DataView;
12+
export function decode(offset: number, template: Object, source: ArrayBuffer): Object;
13+
export function decode(offset: number, template: Object, source: DataView): Object;
14+
}
File renamed without changes.

0 commit comments

Comments
 (0)