Skip to content

Commit 15976b8

Browse files
added typescript definition
also add ts to package and bump version
1 parent 40f918b commit 15976b8

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

JSONCrush.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// Typescript type definition for JSONCrush
2+
export type JSONCrush = {
3+
crush(input: string, maxSubstringLength?: number): string;
4+
uncrush(input: string): string;
5+
};

JSONCrush.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
///////////////////////////////////////////////////////////////////////
2-
// JSONCrush v1.1.1 by Frank Force [MIT] https://github.com/KilledByAPixel/JSONCrush
2+
// JSONCrush v1.1.2 by Frank Force [MIT] https://github.com/KilledByAPixel/JSONCrush
33
///////////////////////////////////////////////////////////////////////
44

55
"use strict";

JSONCrush.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{
22
"name": "jsoncrush",
3-
"version": "1.1.1",
3+
"version": "1.1.2",
44
"description": "Compress JSON in URL friendly strings",
55
"main": "JSONCrush.js",
6+
"types": "JSONCrush.d.ts",
67
"scripts": {
78
"test": "echo \"Error: no test specified\" && exit 1"
89
},

0 commit comments

Comments
 (0)