mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-05-24 14:45:36 +00:00
Adds `packages/extension-api/api-snapshot/` containing the generated
`.d.ts` files for every module re-exported from
`@comfyorg/extension-api`:
index.d.ts — barrel / entry point
events.d.ts — event payload types
identifiers.d.ts — branded entity ID types
lifecycle.d.ts — defineExtension / defineNodeExtension / defineWidgetExtension
node.d.ts — NodeHandle and DOM widget options
shell.d.ts — sidebar, bottom panel, command, toast types
types.d.ts — extension option contracts
widget.d.ts — WidgetHandle
`build/` stays gitignored. Snapshot is a separate stable path so
reviewers see exactly what extension authors will consume on a public
API change, without polluting git with runtime `.js` / per-module
internal declaration files. Regenerate via:
pnpm --filter @comfyorg/extension-api build
cp packages/extension-api/build/extension-api/*.d.ts \
packages/extension-api/api-snapshot/
eslint.config.ts: ignore `api-snapshot/**` so the generated declarations
do not need to live in any tsconfig project.
See `packages/extension-api/api-snapshot/README.md` for the contract.
22 lines
582 B
TypeScript
22 lines
582 B
TypeScript
/**
|
|
* Shell UI extension types — sidebar tabs, bottom panels, commands, toasts.
|
|
*
|
|
* Re-exported from `src/types/extensionTypes.ts` with no shape changes.
|
|
* The original module remains the source of truth; this barrel makes the
|
|
* shell types available from the single `@comfyorg/extension-api` package
|
|
* entry point.
|
|
*
|
|
* @stability stable
|
|
* @packageDocumentation
|
|
*/
|
|
export type {
|
|
SidebarTabExtension,
|
|
BottomPanelExtension,
|
|
VueExtension,
|
|
CustomExtension,
|
|
ToastMessageOptions,
|
|
ToastManager,
|
|
ExtensionManager,
|
|
CommandManager
|
|
} from '../types/extensionTypes'
|