Skip to content

Commit fe77510

Browse files
authored
Merge pull request #5 from EdamAme-x/main
fix
2 parents 7ea07a5 + 8d376fd commit fe77510

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

src/parser.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { JSONValue } from "./types.ts";
2+
13
export function JSONParser(string: string): JSONValue {
24
return JSON.parse(string);
35
}

src/types.d.ts renamed to src/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ type JSONPrimitiveTypes = string | number | boolean | null;
22
type JSONValue = JSONPrimitiveTypes | JSONObject | JSONArray;
33
type JSONObject = { [key: string]: JSONValue };
44
type JSONArray = JSONValue[];
5+
6+
export { JSONPrimitiveTypes, JSONValue, JSONObject, JSONArray };

0 commit comments

Comments
 (0)