augmenttoolkit / node_modules /@nestjs /common /serializer /standard-schema-serializer.interfaces.d.ts
Leon4gr45's picture
Include updated package-lock.json (part 10)
cfbbc1a verified
Raw
History Blame Contribute Delete
583 Bytes
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;
}