@types/lua-json
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

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.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @types/lua-json

      Weekly Downloads

      47

      Version

      1.0.3

      License

      MIT

      Unpacked Size

      3.4 kB

      Total Files

      5

      Last publish

      Collaborators

      • types