@wixc3/typescript
v17.1.1
Published
API
Downloads
145
Maintainers
Keywords
Readme
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 | |