@@ -22,11 +22,14 @@ import {
2222 untracked ,
2323} from '@angular/core'
2424import type { Signal } from '@angular/core'
25- import type { TanStackDevtoolsPlugin } from '@tanstack/devtools'
25+ import type {
26+ TanStackDevtoolsPlugin ,
27+ } from '@tanstack/devtools'
2628import type {
2729 TanStackDevtoolsAngularFunctionalComponent ,
2830 TanStackDevtoolsAngularInit ,
2931 TanStackDevtoolsAngularPlugin ,
32+ TanStackDevtoolsAngularPluginInputProps ,
3033 TanStackDevtoolsAngularPluginRender ,
3134} from './types'
3235
@@ -127,15 +130,15 @@ export class TanStackDevtools {
127130 ...( plugin . inputs ?? { } ) ,
128131 } )
129132 } ,
130- render : ( e , theme ) => {
133+ render : ( e , props ) => {
131134 if ( ! plugin . render ) {
132135 return
133136 }
134137
135138 runInInjectionContext ( this . #viewInjector, ( ) => {
136139 if ( isClassConstructor < unknown > ( plugin . render ) ) {
137140 this . renderComponent ( plugin . render , e , {
138- theme ,
141+ ... props ,
139142 ...( plugin . inputs ?? { } ) ,
140143 } )
141144 } else {
@@ -146,7 +149,7 @@ export class TanStackDevtools {
146149 > ,
147150 e ,
148151 {
149- theme ,
152+ ... props ,
150153 ...( plugin . inputs ?? { } ) ,
151154 } ,
152155 )
@@ -159,7 +162,7 @@ export class TanStackDevtools {
159162 }
160163 }
161164
162- #normalizeInputs< TInputs extends Record < string , unknown > > (
165+ #normalizeInputs< TInputs extends Record < string , any > > (
163166 inputs : Signal < TInputs > | ( ( ) => TInputs ) | TInputs ,
164167 ) : ( ) => TInputs {
165168 return isSignal ( inputs )
@@ -170,7 +173,9 @@ export class TanStackDevtools {
170173 async #renderComponentFunction(
171174 renderFn : Exclude < TanStackDevtoolsAngularPluginRender , Type < any > | null > ,
172175 container : HTMLElement ,
173- inputs : ( ( ) => Record < string , unknown > ) | Record < string , unknown > ,
176+ inputs :
177+ | ( ( ) => TanStackDevtoolsAngularPluginInputProps )
178+ | TanStackDevtoolsAngularPluginInputProps ,
174179 ) {
175180 const result = await renderFn ( )
176181 if ( ! result ) return
@@ -193,7 +198,7 @@ export class TanStackDevtools {
193198 #renderFunctionalComponent(
194199 fn : TanStackDevtoolsAngularFunctionalComponent ,
195200 container : HTMLElement ,
196- inputs : ( ) => Record < string , unknown > ,
201+ inputs : ( ) => TanStackDevtoolsAngularPluginInputProps ,
197202 ) {
198203 const component = createComponent ( TanStackPluginView , {
199204 hostElement : container ,
0 commit comments