Spaces:
Sleeping
Sleeping
File size: 583 Bytes
cfbbc1a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | import type { StandardSchemaV1 } from '@standard-schema/spec';
/**
* Options for the `StandardSchemaSerializerInterceptor`, passed via
* `@SerializeOptions({ schema })`.
*
* @publicApi
*/
export interface StandardSchemaSerializerContextOptions {
/**
* A standard schema to use for serialization.
* Used by `StandardSchemaSerializerInterceptor` to validate/transform the response.
*/
schema?: StandardSchemaV1;
/**
* Optional options forwarded to the schema's `~standard.validate()` call.
*/
validateOptions?: StandardSchemaV1.Options;
}
|