1.0.3 • Published 6 months ago
@types/lua-json v1.0.3
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
// Type definitions for lua-json 1.0
// Project: https://github.com/kcwiki/lua-json#readme
// Definitions by: bitomic <https://github.com/bitomic>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/**
* 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: Thu, 23 Dec 2021 23:35:05 GMT
- Dependencies: none
- Global values:
luajson
Credits
These definitions were written by bitomic.