Skip to content
Source
Sign inSign up
TanStack/table
Open History to see the last commit

plugin.ts

13 lines461 Bytes

1import { createAngularPlugin } from '@tanstack/devtools-utils/angular'
2import { TableDevtoolsPanel } from './TableDevtools'
3​
4type TableDevtoolsPluginFactory = ReturnType<typeof createAngularPlugin>[0]
5​
6const plugins = createAngularPlugin({
7 name: 'TanStack Table',
8 render: TableDevtoolsPanel,
9})
10​
11export const tableDevtoolsPlugin: TableDevtoolsPluginFactory = plugins[0]
12export const tableDevtoolsNoOpPlugin: TableDevtoolsPluginFactory =
13 plugins[1] as any