--- source: crates/schematic/tests/macros_test.rs expression: "std::fs::read_to_string(file).unwrap()" --- // Automatically generated by schematic. DO NOT MODIFY! /* eslint-disable */ export const enum SomeEnum { A, B, C, } export const enum BasicEnum { Foo, /** Comment */ Bar, Baz, } export const enum Test { Foo, Bar, Baz, } export type OtherEnum = 'foo' | 'bar' | 'baz' | string; export const enum Aliased { Foo, Bar, Baz, } export type ValueTypes = { boolean: boolean, /** * @default 'a' * @type {'a' | 'b' | 'c'} */ enums: SomeEnum, map: Record, number: number, rest: Record, s3_value: string, string: string, vector: string[], }; export type OptionalValues = { optional: string | null, required: boolean, }; export type DefaultValues = { array?: number[], arrayOpt: number[] | null, /** @default true */ boolean?: boolean, booleanFn?: boolean, /** * @default 'a' * @type {'a' | 'b' | 'c'} */ enums: SomeEnum, /** @default 'foo.json' */ fileString?: string, /** @default 1.32 */ float32?: number, /** @default 1.64 */ float64?: number, /** @default 'foo with. many values!' */ longString?: string, /** @default 123 */ number?: number, /** @default 'foo/bar' */ pathString?: string, pathStringBox: string, /** @default 'foo' */ string?: string, stringFn?: string, tuple?: [number, number, number, number], tupleOpt: [number, number, number, number] | null, vector?: number[], }; export type Serde = { renamed: string, }; export type SerdeNativeRenamed = { renamed: string, }; export type Merging = { basic: string, }; export type ExtendsString = { extends: string, }; export type ExtendsList = { extends: string[], }; export type ExtendsFrom = string | string[]; export type ExtendsEnum = { extends: ExtendsFrom, }; export type ExtendsOptional = { extends: string[] | null, }; export type EnvVars = { /** @envvar BAR */ advanced: string[], /** @envvar FOO */ basic: string, }; export type NestedValidations = { basic: string, }; export type Validations = { basic: string, nested: NestedValidations, nested2: NestedValidations | null, optional: string | null, required: string | null, }; /** Container comment. */ export type Comments = { /** * Block * * @deprecated Bye */ block: boolean, /** * Block with a super long comment that will span multiple lines. * Block with a super long comment that will span multiple lines. */ blockLong: boolean, /** * Docs * * @deprecated */ docs: boolean, /** * Docs with a super long comment that will span multiple lines. * It also **contains** some _markdown_ [stuff](.). */ docsLong: boolean, inlineBlock: boolean, normal: boolean, }; export type UnnamedMultiple = [string, number | null, boolean]; export type PartialDefaultValues = { array?: number[] | null, arrayOpt?: number[] | null, /** @default true */ boolean?: boolean | null, booleanFn?: boolean | null, /** @default 'a' */ enums?: SomeEnum | null, /** @default 'foo.json' */ fileString?: string | null, /** @default 1.32 */ float32?: number | null, /** @default 1.64 */ float64?: number | null, /** @default 'foo with. many values!' */ longString?: string | null, /** @default 123 */ number?: number | null, /** @default 'foo/bar' */ pathString?: string | null, pathStringBox?: string | null, /** @default 'foo' */ string?: string | null, stringFn?: string | null, tuple?: [number, number, number, number] | null, tupleOpt?: [number, number, number, number] | null, vector?: number[] | null, }; export type PartialValueTypes = { boolean?: boolean | null, /** @default 'a' */ enums?: SomeEnum | null, map?: Record | null, number?: number | null, rest?: Record | null, s3_value?: string | null, string?: string | null, vector?: string[] | null, }; export type PartialNested = { list?: PartialValueTypes[] | null, map?: Record | null, map2?: Record | null, one?: PartialValueTypes | null, two?: PartialValueTypes | null, }; export type PartialNestedValidations = { basic?: string | null, }; export type PartialValidations = { basic?: string | null, nested?: PartialNestedValidations | null, nested2?: PartialNestedValidations | null, optional?: string | null, required?: string | null, };