18.1.1 • Published 5 months ago
@wixc3/typescript v18.1.1
typescript package
TypeScript utilities
Functions
Function | Description |
---|---|
compileCode(code, fakePath) | Compiles a code string to typescript AST |
findAllNodes(source, predicate) | Finds all nodes satisfying the predicate |
findNode(source, predicate) | Finds the first node (via DFS) satisfying the predicate |
findNodeAfterComment(node, comment) | Finds all nodes following a comment |
getLeadingComments(node) | A more regorges ts.getLeadingCommentRanges: Finds mid - statement comments as well |
isSame(a, b, ignore, reportDiff) | Compared 2 code snippet (or ASTs) |
match(code, pattern) | Finds a node matching the pattern. The pattern is a valid TS statementIt may include:- //[ignore] to skip some of its structure,- //[return] to return an inner node instead of the root |
Type Aliases
Type Alias | Description |
---|---|
Comment_2 |
18.1.1
5 months ago
18.0.0
6 months ago
17.1.1
1 year ago
17.0.0
1 year ago
16.2.1
1 year ago
16.2.0
1 year ago
16.1.0
1 year ago
16.0.0
1 year ago
15.1.1
1 year ago
15.0.0
1 year ago
14.0.0
2 years ago
14.1.0
2 years ago
12.0.1
2 years ago
13.4.0
2 years ago
13.3.2
2 years ago
13.2.0
2 years ago
13.0.0
2 years ago
13.1.0
2 years ago
13.0.1
2 years ago
11.0.0
2 years ago
8.2.1
2 years ago
10.0.0
2 years ago
9.0.0
2 years ago
8.0.0
2 years ago
7.1.0
2 years ago
7.0.3
2 years ago
7.0.0
2 years ago
6.0.0
2 years ago
5.2.4
3 years ago
5.0.0
3 years ago
4.0.0
3 years ago
3.1.0
3 years ago
3.0.7
3 years ago
3.0.1
3 years ago