File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -196,9 +196,11 @@ export type NgtNodeElement<TOriginal, TConstructor> = {
196
196
__ngt_args__ : NgtArguments < TConstructor > ;
197
197
} ;
198
198
199
- export type NgtNode < TOriginal , TConstructor , TNoEvent = NoEvent < TOriginal > > = Expand <
200
- NgtExtendedColors < NgtOverwrite < Partial < TNoEvent > , NgtNodeElement < TOriginal , TConstructor > > >
201
- > ;
199
+ export type NgtNode < TOriginal , TConstructor , TNoEvent = NoEvent < TOriginal > > = [ TNoEvent ] extends [
200
+ { thisShouldNeverHappen : 'unless the object is of type any' } ,
201
+ ]
202
+ ? NgtExtendedColors < NgtOverwrite < Partial < { } > , NgtNodeElement < { } , { } > > >
203
+ : NgtExtendedColors < NgtOverwrite < Partial < TNoEvent > , NgtNodeElement < TOriginal , TConstructor > > > ;
202
204
203
205
export type NgtObject3DEventsMap = {
204
206
[ TEvent in keyof NgtEventHandlers ] -?: Parameters < NonNullable < NgtEventHandlers [ TEvent ] > > [ 0 ] ;
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ import {
20
20
import { NgtObject3DNode } from './three-types' ;
21
21
import { NgtSignalStore } from './utils/signal-store' ;
22
22
23
- export type NgtProperties < T > = Pick < T , { [ K in keyof T ] : T [ K ] extends ( _ : any ) => any ? never : K } [ keyof T ] > ;
23
+ export type NgtProperties < T > = { [ K in keyof T as T [ K ] extends ( ... args : Array < any > ) => any ? never : K ] : T [ K ] } ;
24
24
export type NgtAnyRecord = Record < string , any > ;
25
25
26
26
export type NgtEquConfig = {
You can’t perform that action at this time.
0 commit comments