--- 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 type SomeEnum = 'a' | 'b' | 'c'; export type BasicEnum = 'foo' | 'bar' | 'baz'; export type Test = 'FOO' | 'bAr' | 'b-a-z'; export type OtherEnum = 'foo' | 'bar' | 'baz' | string; export type Aliased = 'foo' | 'bar' | 'baz'; export interface 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 interface OptionalValues { optional: string | null; required: boolean; } export interface 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 interface Serde { renamed: string; } export interface SerdeNativeRenamed { renamed: string; } export interface Merging { basic: string; } export interface ExtendsString { extends: string; } export interface ExtendsList { extends: string[]; } export type ExtendsFrom = string | string[]; export interface ExtendsEnum { extends: ExtendsFrom; } export interface ExtendsOptional { extends: string[] | null; } export interface EnvVars { /** @envvar BAR */ advanced: string[]; /** @envvar FOO */ basic: string; } export interface NestedValidations { basic: string; } export interface Validations { basic: string; nested: NestedValidations; nested2: NestedValidations | null; optional: string | null; required: string | null; } /** Container comment. */ export interface 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 interface 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 interface 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 interface PartialNested { list?: PartialValueTypes[] | null; map?: Record | null; map2?: Record | null; one?: PartialValueTypes | null; two?: PartialValueTypes | null; } export interface PartialNestedValidations { basic?: string | null; } export interface PartialValidations { basic?: string | null; nested?: PartialNestedValidations | null; nested2?: PartialNestedValidations | null; optional?: string | null; required?: string | null; }