diff --git a/lib/compile/jtd/types.ts b/lib/compile/jtd/types.ts index 7f3619576..1258050fd 100644 --- a/lib/compile/jtd/types.ts +++ b/lib/compile/jtd/types.ts @@ -13,4 +13,4 @@ export const jtdForms = [ "ref", ] as const -export type JTDForm = typeof jtdForms[number] +export type JTDForm = (typeof jtdForms)[number] diff --git a/lib/compile/rules.ts b/lib/compile/rules.ts index ea65074f9..7dbf7ab9e 100644 --- a/lib/compile/rules.ts +++ b/lib/compile/rules.ts @@ -2,7 +2,7 @@ import type {AddedKeywordDefinition} from "../types" const _jsonTypes = ["string", "number", "integer", "boolean", "null", "object", "array"] as const -export type JSONType = typeof _jsonTypes[number] +export type JSONType = (typeof _jsonTypes)[number] const jsonTypes: Set = new Set(_jsonTypes)