zod-openapi-share
    Preparing search index...

    Type Alias CreateSchemaInterface

    The interface that defines the methods of createOpenAPISchema class.

    type CreateSchemaInterface = {
        createSchema<
            M extends Partial<Record<StatusCode, ResponseConfig | ReferenceObject>>,
            R extends RouteConfig,
            T extends readonly UserDefinedStatusCode<M>[],
        >(
            route: R,
            statusCodes?: UniqueTuple<UserDefinedStatusCode<M>, T>,
        ): R;
    }

    Implemented by

    Index

    Methods

    Methods