diff --git a/src/core/client/framework/types.ts b/src/core/client/framework/types.ts index 6ea1faf15..60a609441 100644 --- a/src/core/client/framework/types.ts +++ b/src/core/client/framework/types.ts @@ -1,2 +1,2 @@ // TODO: (@cvle) Extract useful common types into its own package. -export { Diff, Omit, Overwrite, PropTypesOf } from "talk-ui/types"; +export { Omit, Overwrite, PropTypesOf } from "talk-ui/types"; diff --git a/src/core/client/ui/types.ts b/src/core/client/ui/types.ts index 576b881c3..55c7d638b 100644 --- a/src/core/client/ui/types.ts +++ b/src/core/client/ui/types.ts @@ -2,27 +2,19 @@ import React from "react"; // TODO: Extract useful common types into its own package. -/** - * Returns literals types that are in T but not in U. - * - * E.g. Diff<"a" | "b", "a"> = "b" - */ -export type Diff = ({ [P in T]: P } & - { [P in U]: never } & { [x: string]: never; [x: number]: never })[T]; - /** * Overwrite properties of `T`. * * E.g. Omit<{a: boolean, b: boolean}, "b"> = {a: boolean} */ -export type Omit = Pick>; +export type Omit = Pick>; /** * Overwrite properties of `T`. * * E.g. Overwrite<{a: boolean}, {a: string}> = {a: string} */ -export type Overwrite = Pick> & U; +export type Overwrite = Pick> & U; /** * Returns the PropTypes from a React Component.