From 48d3f36fdce32d15af8d51a894cb5ed19bb050da Mon Sep 17 00:00:00 2001 From: fightingcat Date: Tue, 9 Jul 2019 10:59:59 +0800 Subject: [PATCH] Typescript declaration. Update version number. --- index.d.ts | 7 +++++++ package.json | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 index.d.ts diff --git a/index.d.ts b/index.d.ts new file mode 100644 index 0000000..1fa818f --- /dev/null +++ b/index.d.ts @@ -0,0 +1,7 @@ +interface FormatOptions { + eol?: string; + singleQuote?: boolean; + spaces?: null | number | string; +} +export function format(value: any, options?: FormatOptions): string; +export function parse(value: string): any; \ No newline at end of file diff --git a/package.json b/package.json index a6ff679..b6e6b61 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "lua-json", - "version": "1.0.0", + "version": "1.0.1", "description": "Convert Lua tables to and from JSON", "keywords": [ "json",