Skip to content

Commit c678771

Browse files
authored
fix Properties<T> to not include initMouseEvent
1 parent 818e383 commit c678771

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/fiber/src/three-types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as THREE from 'three'
22
import { EventHandlers } from './core/events'
33
import { AttachType } from './core/renderer'
44

5-
export type Properties<T> = Pick<T, { [K in keyof T]: T[K] extends (_: any) => any ? never : K }[keyof T]>
5+
export type Properties<T> = { [K in keyof T as T[K] extends (...args: Array<any>) => any ? never : K]: T[K] }
66
export type NonFunctionKeys<T> = { [K in keyof T]-?: T[K] extends Function ? never : K }[keyof T]
77
export type Overwrite<T, O> = Omit<T, NonFunctionKeys<O>> & O
88

0 commit comments

Comments
 (0)