MCPcopy Create free account
hub / github.com/TanStack/devtools / createAngularPlugin

Function createAngularPlugin

packages/devtools-utils/src/angular/plugin.ts:21–46  ·  view source on GitHub ↗
({
  render,
  ...config
}: {
  name: string
  id?: string
  defaultOpen?: boolean
  render: TanStackDevtoolsAngularPluginRender<T>
})

Source from the content-addressed store, hash-verified

19 | Promise<TanStackDevtoolsAngularPluginRenderFn<T>>)
20
21export function createAngularPlugin<T extends DevtoolsPluginProps>({
22 render,
23 ...config
24}: {
25 name: string
26 id?: string
27 defaultOpen?: boolean
28 render: TanStackDevtoolsAngularPluginRender<T>
29}) {
30 function Plugin(inputs?: T | (() => T)) {
31 return {
32 ...config,
33 render,
34 inputs,
35 }
36 }
37
38 function NoOpPlugin() {
39 return {
40 ...config,
41 render: null,
42 }
43 }
44
45 return [Plugin, NoOpPlugin] as const
46}

Callers 3

plugin.tsFile · 0.90
plugin.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected