Installation
npm install --save @types/lua-json
Summary
This package contains type definitions for lua-json (https://github.com/kcwiki/lua-json#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/lua-json.
index.d.ts
/**
* Takes a JSON object and returns a Lua table as a string.
*/
export function format(
value: object,
options?: {
eol?: string;
singleQuote?: boolean;
spaces?: number;
},
): string;
/**
* Takes a Lua table (string) and returns a JSON object.
*/
export function parse(value: string): object;
/**
* lua-json provides a way to convert between JSON and Lua tables.
*/
export as namespace luajson;
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: none
Credits
These definitions were written by bitomic.