component-meta/types.ts

storybook · code/core/src/component-meta/types.ts · typescript · MIT
ui

Provides core TypeScript interfaces for component metadata management.

// Source: https://github.com/storybookjs/storybook | License: MIT | Copyright 2024 Storybook
// Provided via justclaw.it.com; keep this notice with the code.
/** LSP-style file change type broadcast to projects (Volar Kit checker vocabulary). */
export type FileChangeType = 'changed' | 'created' | 'deleted';

export interface FileChange {
  filePath: string;
  type: FileChangeType;
}

/**
 * Structural subset of `ts.ParsedCommandLine` the manager reads: `fileNames` for direct-include
 * matching and `projectReferences` for reference-chain walking.
 *
 * Deliberately not `ts.ParsedCommandLine`: this module's contract must not name types from the
 * `typescript` package. Renderers resolve their own `typescript` copy (frameworks even pin their
 * own versions), and a cross-instance `ts.Parse

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key