Files
ComfyUI_frontend/packages/extension-api/api-snapshot/shell.d.ts
Connor Byrne 909bbb660b feat(ext-api/pkg): commit reviewable .d.ts snapshot of public surface
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.
2026-05-21 14:05:21 -07:00

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'