mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-12-12 20:25:48 -06:00
Make visitor functions public
This commit is contained in:
parent
db23ca7c8b
commit
fc2cf2f78f
@ -3935,6 +3935,13 @@
|
||||
*/
|
||||
export type FileTransformer = (node: SourceFile) => SourceFile;
|
||||
|
||||
export type VisitResult<T extends Node> = T | T[];
|
||||
|
||||
/**
|
||||
* A function that accepts and possible transforms a node.
|
||||
*/
|
||||
export type Visitor = (node: Node) => VisitResult<Node>;
|
||||
|
||||
export interface Printer {
|
||||
/**
|
||||
* Print a node and its subtree as-is, without any emit transformations.
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user