Skip to content

PropsToShape

@tsed/schema

Usage

typescript
import { PropsToShape } from "@tsed/specs/schema/src/domain/types";

See /packages/specs/schema/src/domain/types.ts.

Overview

ts
type PropsToShape<P extends Record<string, JsonSchema<any>>> = {
    [K in keyof P]: Infer<P[K]>;
};

[K in keyof P]

ts
[K in keyof P]: Infer<P[K]>;

Released under the MIT License.