@@ -143,6 +143,8 @@ export type Rect = {
143143 height : number
144144}
145145
146+ export type ElementChildren < T extends object > = Iterable < T > & ArrayLike < T >
147+
146148/**
147149 * When using a custom solid renderer, you should provide a custom element interface.
148150 * By default the debugger assumes that rendered elements are DOM elements.
@@ -151,7 +153,7 @@ export type ElementInterface<T extends object> = {
151153 isElement : ( obj : object | T ) => obj is T ,
152154 getElementAt : ( e : MouseEvent ) => T | null ,
153155 getName : ( el : T ) => string | null ,
154- getChildren : ( el : T ) => Iterable < T > ,
156+ getChildren : ( el : T ) => ElementChildren < T > ,
155157 getParent : ( el : T ) => T | null ,
156158 getLocation : ( el : T ) => SourceLocation | null ,
157159 getRect : ( el : T ) => Rect | null ,
@@ -196,17 +198,14 @@ export const getValueItemId = <T extends ValueItemType>(
196198export type ValueUpdateListener = ( newValue : unknown , oldValue : unknown ) => void
197199
198200export namespace Solid {
199- export type OwnerBase = import ( 'solid-js' ) . Owner
200- export type SourceMapValue = import ( 'solid-js/types/reactive/signal.d.ts' ) . SourceMapValue
201- export type Signal = import ( 'solid-js/types/reactive/signal.d.ts' ) . SignalState < unknown >
202- export type Computation = import ( 'solid-js/types/reactive/signal.d.ts' ) . Computation < unknown >
203- export type Memo = import ( 'solid-js/types/reactive/signal.d.ts' ) . Memo < unknown >
201+ export type OwnerBase = import ( 'solid-js' ) . Owner
202+ export type SourceMapValue = import ( 'solid-js/types/reactive/signal.d.ts' ) . SourceMapValue
203+ export type Signal = import ( 'solid-js/types/reactive/signal.d.ts' ) . SignalState < unknown >
204+ export type Computation = import ( 'solid-js/types/reactive/signal.d.ts' ) . Computation < unknown >
205+ export type Memo = import ( 'solid-js/types/reactive/signal.d.ts' ) . Memo < unknown >
204206 export type RootFunction < T > = import ( 'solid-js/types/reactive/signal.d.ts' ) . RootFunction < T >
205- export type EffectFunction =
206- import ( 'solid-js/types/reactive/signal.d.ts' ) . EffectFunction < unknown >
207- export type Component = import ( 'solid-js/types/reactive/signal.d.ts' ) . DevComponent < {
208- [ key : string ] : unknown
209- } >
207+ export type EffectFunction = import ( 'solid-js/types/reactive/signal.d.ts' ) . EffectFunction < unknown >
208+ export type Component = import ( 'solid-js/types/reactive/signal.d.ts' ) . DevComponent < { [ key : string ] : unknown } >
210209
211210 export type CatchError = Omit < Computation , 'fn' > & { fn : undefined }
212211
@@ -230,10 +229,10 @@ export namespace Solid {
230229 // STORE
231230 //
232231
233- export type StoreNode = import ( 'solid-js/store' ) . StoreNode
234- export type NotWrappable = import ( 'solid-js/store' ) . NotWrappable
232+ export type StoreNode = import ( 'solid-js/store' ) . StoreNode
233+ export type NotWrappable = import ( 'solid-js/store' ) . NotWrappable
235234 export type OnStoreNodeUpdate = import ( 'solid-js/store/types/store.d.ts' ) . OnStoreNodeUpdate
236- export type Store = SourceMapValue & { value : StoreNode }
235+ export type Store = SourceMapValue & { value : StoreNode }
237236}
238237
239238declare module 'solid-js/types/reactive/signal.d.ts' {
0 commit comments