We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98e1127 commit 08b9caaCopy full SHA for 08b9caa
src/index.ts
@@ -42,7 +42,7 @@ export const DEFAULT_OPTIONS: Options = {
42
43
export function compileFromFile(
44
filename: string,
45
- options = DEFAULT_OPTIONS
+ options: Partial<Options> = DEFAULT_OPTIONS
46
): Promise<string> {
47
const contents = Try(
48
() => readFileSync(filename),
@@ -62,7 +62,7 @@ export function compileFromFile(
62
export async function compile(
63
schema: JSONSchema4,
64
name: string,
65
- options = {}
+ options: Partial<Options> = {}
66
67
68
const _options = { ...DEFAULT_OPTIONS, ...options }
0 commit comments