# Interface SchemaUtils<Raw, Parsed>

interface SchemaUtils<Raw, Parsed> {
jsonOrThrow: (raw: unknown, opts?: SchemaOptions) => Raw;
nullable: () => Schema<Raw | null, Parsed | null>;
optional: () => Schema<Raw | null | undefined, Parsed | undefined>;
optionalNullable: () => Schema<
Raw
| null
| undefined,
Parsed | null | undefined,
>;
parseOrThrow: (raw: unknown, opts?: SchemaOptions) => Parsed;
transform: <Transformed>(
transformer: SchemaTransformer<Parsed, Transformed>,
) => Schema<Raw, Transformed>;
}

#### Type Parameters

- Raw
- Parsed

- Defined in engine/sdks/typescript/api-full/types/core/schemas/builders/schema-utils/getSchemaUtils.d.ts:2

##### Index

### Properties

jsonOrThrow
nullable
optional
optionalNullable
parseOrThrow
transform

## Properties

### jsonOrThrow

jsonOrThrow: (raw: unknown, opts?: SchemaOptions) => Raw

- Defined in engine/sdks/typescript/api-full/types/core/schemas/builders/schema-utils/getSchemaUtils.d.ts:8

### nullable

nullable: () => Schema<Raw | null, Parsed | null>

- Defined in engine/sdks/typescript/api-full/types/core/schemas/builders/schema-utils/getSchemaUtils.d.ts:3

### optional

optional: () => Schema<Raw | null | undefined, Parsed | undefined>

- Defined in engine/sdks/typescript/api-full/types/core/schemas/builders/schema-utils/getSchemaUtils.d.ts:4

### optionalNullable

optionalNullable: () => Schema<
Raw
| null
| undefined,
Parsed | null | undefined,
>

- Defined in engine/sdks/typescript/api-full/types/core/schemas/builders/schema-utils/getSchemaUtils.d.ts:5

### parseOrThrow

parseOrThrow: (raw: unknown, opts?: SchemaOptions) => Parsed

- Defined in engine/sdks/typescript/api-full/types/core/schemas/builders/schema-utils/getSchemaUtils.d.ts:7

### transform

transform: <Transformed>(
transformer: SchemaTransformer<Parsed, Transformed>,
) => Schema<Raw, Transformed>

- Defined in engine/sdks/typescript/api-full/types/core/schemas/builders/schema-utils/getSchemaUtils.d.ts:6