UNPKG

@aduh95/toml

Version:

This package contains methods for parsing Tom's Obvious, Minimal Language (TOML) and converting values to TOML.

39 lines (36 loc) 1.2 kB
/* tslint:disable */ /* eslint-disable */ /** * @param {string} input * @returns {any} */ export function parse(input: string): any; /** * @param {any} input * @returns {sxport function parse(input: string): any; /** * @param {any} input * @returns {string} */ export function stringify(input: any): string; export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module; export interface InitOutput { readonly memory: WebAssembly.Memory; readonly parse: (a: number, b: number) => number; readonly stringify: (a: number, b: number) => void; readonly __wbindgen_malloc: (a: number) => number; readonly __wbindgen_realloc: (a: number, b: number, c: number) => number; readonly __wbindgen_free: (a: number, b: number) => void; } /** * If `module_or_path` is {RequestInfo} or {URL}, makes a request and * for everything else, calls `WebAssembly.instantiate` directly. * * @param {InitInput | Promise<InitInput>} module_or_path * * @returns {Promise<InitOutput>} */ export default function init (module_or_path?: InitInput | Promise<InitInput>): Promise<InitOutput>; {any} */ export function parse(input: string | (ArrayBufferView & ArrayLike<number>)): any;