src/options.types.ts
import type {
Part, Replace, SchemaDeclaredValues
} from './ts-swiss.types'
import type schema = require("./schema.json")
type SchemaOptions = typeof schema
type DefOptions = {
[K in keyof SchemaOptions["properties"]]: SchemaDeclaredValues<SchemaOptions["properties"][K]>
}
export type Options = Part<Replace<DefOptions, {
identifierPattern: string | RegExp
identifierCleanupPattern: string | RegExp
destination: false | Exclude<DefOptions["destination"], boolean>
}>>