Skip to content

Commit

Permalink
fix: fix stringifyTOML types
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Apr 10, 2024
1 parent 0e2caf1 commit 40e1ca4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/toml.ts
Expand Up @@ -21,6 +21,6 @@ export function parseTOML<T = unknown>(text: string): T {
* @param options
* @returns The YAML string converted from the JavaScript value.
*/
export function stringifyTOML<T = unknown>(text: string): T {
return stringify(text) as T;
export function stringifyTOML(value: any): string {
return stringify(value);
}

0 comments on commit 40e1ca4

Please sign in to comment.