Prettier
Category
Type Environment
Node & Browser Last updated
2024/04/22 08:13:11Prettier type hints.
Usage
ts
import type { Prettier } from "@bernankez/utils";
interface Foo {
type: string;
}
interface Bar {
count: number;
}
type Combined = Foo & Bar; // type Combined = Foo & Bar
type Pretty = Prettier<Combined>; // type Pretty = { type: string; count: number; }