Skip to content

CustomKeys

@tsed/schema

Usage

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

See /packages/specs/schema/src/types/decorators/common/customKey.ts.

Overview

ts
function CustomKeys(obj: Record<string, any>): (...args: any[]) => any;

Description

Set a group of custom keys on JsonSchema that is not a part of the official spec.

This custom key can only be displayed if the getJsonSchema is called with {customKeys: true}.

Released under the MIT License.