Add support for reading toml files

This commit is contained in:
Justin Bennett 2022-01-08 00:08:21 -05:00
parent 5613870e6d
commit cebe54f42a
4 changed files with 10181 additions and 19 deletions

9
types/fast-toml/index.d.ts vendored Normal file
View file

@ -0,0 +1,9 @@
declare module "fast-toml" {
export function parse<R extends Record<string, unknown>>(input: string): R;
export function parseFile<R extends Record<string, unknown>>(
file: string
): Promise<R>;
export function parseFileSync<R extends Record<string, unknown>>(
file: string
): R;
}