diff --git a/typings/preact/helpers.d.ts b/typings/preact/helpers.d.ts index 9c9245fc..949f78a8 100644 --- a/typings/preact/helpers.d.ts +++ b/typings/preact/helpers.d.ts @@ -1,5 +1,7 @@ -type Diff = ({[P in T]: P} & - {[P in U]: never} & {[x: string]: never})[T] +type Diff< + T extends string | number | symbol, + U extends string | number | symbol +> = ({[P in T]: P} & {[P in U]: never} & {[x: string]: never})[T] export type Omit = Pick>