UNPKG

@builder.io/mitosis

Version:

Write components once, run everywhere. Compiles to Vue, React, Solid, and Liquid. Import code from Figma and Builder.io

10 lines (9 loc) 376 B
export type Overwrite<T, U> = keyof U extends keyof T ? Pick<T, Exclude<keyof T, keyof U>> & U : never; export type Prettify<T> = { [K in keyof T]: T[K]; } & {}; export type OmitObj<T, U> = T extends U ? Omit<T, keyof U> : never; export type Dictionary<T> = { [key: string]: T; }; export declare const objectHasKey: <T>(object: T, key: PropertyKey) => key is keyof T;