Some checks failed
CI/CD Pipeline / unit-tests (push) Failing after 1m16s
CI/CD Pipeline / integration-tests (push) Failing after 2m32s
CI/CD Pipeline / lint (push) Successful in 5m22s
CI/CD Pipeline / e2e-tests (push) Has been skipped
CI/CD Pipeline / build (push) Has been skipped
23 lines
689 B
TypeScript
23 lines
689 B
TypeScript
/**
|
|
* Converts a [TOML](https://toml.io/) string into an object.
|
|
*
|
|
* @NOTE Comments and indentation is not preserved after parsing.
|
|
*
|
|
* @template T The type of the return value.
|
|
* @param text The TOML string to parse.
|
|
* @returns The JavaScript value converted from the TOML string.
|
|
*/
|
|
declare function parseTOML<T = unknown>(text: string): T;
|
|
/**
|
|
* Converts a JavaScript value to a [TOML](https://toml.io/) string.
|
|
*
|
|
* @NOTE Comments and indentation is not preserved in the output.
|
|
*
|
|
* @param value
|
|
* @param options
|
|
* @returns The YAML string converted from the JavaScript value.
|
|
*/
|
|
declare function stringifyTOML(value: any): string;
|
|
|
|
export { parseTOML, stringifyTOML };
|