Initial commit
This commit is contained in:
commit
b3a51a4115
10336 changed files with 2381973 additions and 0 deletions
23
node_modules/confbox/dist/toml.d.mts
generated
vendored
Normal file
23
node_modules/confbox/dist/toml.d.mts
generated
vendored
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
//#region src/toml.d.ts
|
||||
/**
|
||||
* 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;
|
||||
//#endregion
|
||||
export { parseTOML, stringifyTOML };
|
||||
Loading…
Add table
Add a link
Reference in a new issue