Download web/client/node_modules/@vue/devtools-api/lib/esm/plugin.d.ts from amitesh11/pose: direct link, hf CLI and curl.
- Browser
- Download file 1.28 kB
-
https://huggingface.co/spaces/amitesh11/pose/resolve/main/web/client/node_modules/%40vue/devtools-api/lib/esm/plugin.d.ts
- Command line
-
hf download hf://spaces/amitesh11/pose/web/client/node_modules/@vue/devtools-api/lib/esm/plugin.d.ts
-
curl -L -o plugin.d.ts https://huggingface.co/spaces/amitesh11/pose/resolve/main/web/client/node_modules/%40vue/devtools-api/lib/esm/plugin.d.ts
1.28 kB
| import type { App } from './api/index.js'; | |
| export interface PluginDescriptor { | |
| id: string; | |
| label: string; | |
| app: App; | |
| packageName?: string; | |
| homepage?: string; | |
| componentStateTypes?: string[]; | |
| logo?: string; | |
| disableAppScope?: boolean; | |
| disablePluginScope?: boolean; | |
| /** | |
| * Run the plugin setup and expose the api even if the devtools is not opened yet. | |
| * Useful to record timeline events early. | |
| */ | |
| enableEarlyProxy?: boolean; | |
| settings?: Record<string, PluginSettingsItem>; | |
| } | |
| export type PluginSettingsItem = { | |
| label: string; | |
| description?: string; | |
| } & ({ | |
| type: 'boolean'; | |
| defaultValue: boolean; | |
| } | { | |
| type: 'choice'; | |
| defaultValue: string | number; | |
| options: { | |
| value: string | number; | |
| label: string; | |
| }[]; | |
| component?: 'select' | 'button-group'; | |
| } | { | |
| type: 'text'; | |
| defaultValue: string; | |
| }); | |
| type InferSettingsType<T extends PluginSettingsItem> = [T] extends [{ | |
| type: 'boolean'; | |
| }] ? boolean : [T] extends [{ | |
| type: 'choice'; | |
| }] ? T['options'][number]['value'] : [T] extends [{ | |
| type: 'text'; | |
| }] ? string : unknown; | |
| export type ExtractSettingsTypes<O extends Record<string, PluginSettingsItem>> = { | |
| [K in keyof O]: InferSettingsType<O[K]>; | |
| }; | |
| export {}; | |