-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fix arguments w/ rest have unknown type (#19)
closes #18
- Loading branch information
1 parent
5677211
commit 036d3e3
Showing
27 changed files
with
515 additions
and
260 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,5 @@ | ||
// deno-lint-ignore-file no-explicit-any | ||
import * as YAML from "https://deno.land/[email protected]/encoding/yaml.ts"; | ||
import * as TOML from "https://deno.land/[email protected]/encoding/toml.ts"; | ||
import * as JSONc from "https://deno.land/[email protected]/encoding/jsonc.ts"; | ||
import * as INI from "https://deno.land/x/[email protected]/mod.ts"; | ||
import * as path from "https://deno.land/[email protected]/path/mod.ts"; | ||
import { JSONc, path, TOML, YAML } from "./deps.ts"; | ||
import { Join, NestedKeys, NestedValue, Split } from "./lib/types.ts"; | ||
import { z } from "./z.ts"; | ||
|
||
|
@@ -111,7 +107,6 @@ export const parsers = { | |
}, | ||
yaml: YAML, | ||
toml: TOML, | ||
ini: INI, | ||
} as const; | ||
|
||
export const configUtil = { | ||
|
@@ -198,7 +193,7 @@ export type ConfigOptions<Schema extends z.ZodRawShape> = { | |
/** | ||
* @default "toml" | ||
*/ | ||
format?: "jsonc" | "yaml" | "toml" | "ini"; | ||
format?: "jsonc" | "yaml" | "toml"; | ||
/** | ||
* The write mode for the config file. | ||
* @default 0o600 | ||
|
Oops, something went wrong.