cmux/node_modules/json-schema-to-ts/lib/utils/prettify.d.ts
2026-01-29 17:36:26 -08:00

10 lines
281 B
TypeScript

import { IsObject } from "./extends";
/**
* Resolves generic definitions in hover windows to human-friendly results
*
* @param T Type
* @return Type
*/
export declare type Prettify<T> = IsObject<T> extends true ? {
[K in keyof T]: K extends keyof T ? T[K] : never;
} : T;