Skip to content

getGenerics

@tsed/schema

Usage

typescript
import { getGenerics } from "@tsed/schema";

See /packages/specs/schema/src/utils/generics.ts.

Overview

ts
function getGenerics(value: JsonSchema, options: JsonSchemaOptions): import("@tsed/schema").GenericsMap | undefined;

Description

Resolve generic bindings for the current compilation.

Local generics attached to the JsonSchema instance take precedence over the externally provided options.generics bindings.

Released under the MIT License.