1 | import { Node, SourceFile } from "typescript";
|
2 | import { SourceFileRange } from "./range.js";
|
3 | export type LitDefinitionTargetKind = "node" | "range";
|
4 | export interface LitDefinitionTargetBase {
|
5 | kind: LitDefinitionTargetKind;
|
6 | }
|
7 | export interface LitDefinitionTargetNode extends LitDefinitionTargetBase {
|
8 | kind: "node";
|
9 | node: Node;
|
10 | name?: string;
|
11 | }
|
12 | export interface LitDefinitionTargetRange {
|
13 | kind: "range";
|
14 | sourceFile: SourceFile;
|
15 | range: SourceFileRange;
|
16 | name?: string;
|
17 | }
|
18 | export type LitDefinitionTarget = LitDefinitionTargetNode | LitDefinitionTargetRange;
|
19 | export interface LitDefinition {
|
20 | fromRange: SourceFileRange;
|
21 | targets: LitDefinitionTarget[];
|
22 | }
|
23 |
|
\ | No newline at end of file |