mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
21 lines
507 B
TypeScript
21 lines
507 B
TypeScript
import * as ts from 'typescript';
|
|
export interface NodeWrap {
|
|
node: ts.Node;
|
|
kind: ts.SyntaxKind;
|
|
children: NodeWrap[];
|
|
next?: NodeWrap;
|
|
skip?: NodeWrap;
|
|
parent?: NodeWrap;
|
|
}
|
|
export interface WrappedAst extends NodeWrap {
|
|
node: ts.SourceFile;
|
|
next: NodeWrap;
|
|
skip: undefined;
|
|
parent: undefined;
|
|
}
|
|
export interface ConvertedAst {
|
|
wrapped: WrappedAst;
|
|
flat: ReadonlyArray<ts.Node>;
|
|
}
|
|
export declare function convertAst(sourceFile: ts.SourceFile): ConvertedAst;
|