@wixc3/typescript

18.0.0 • Public • Published

npm version @wixc3/typescript on Github

Home > @wixc3/typescript

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 statement

It 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

Readme

Keywords

none

Package Sidebar

Install

npm i @wixc3/typescript

Weekly Downloads

6

Version

18.0.0

License

MIT

Unpacked Size

29.5 kB

Total Files

22

Last publish

Collaborators

  • tomrav
  • avi.vahl
  • alexswix
  • devex-infra
  • iuriikowix
  • pijusn
  • omerk
  • talga
  • cijoe
  • wix-ci
  • wixnpm
  • baraki
  • interal
  • alisey
  • danieleww
  • idoros
  • nadavwix
  • rashellek
  • wtfil
  • denysdovhan
  • vkobeliatskyi
  • pistolpete_
  • nettaru
  • igalh
  • netanelgilad
  • anatfenn
  • erezshasha
  • zemlanin
  • arnonkehat
  • ariki
  • itpurchases
  • danalevy
  • serhiiz
  • oleksandraab
  • idango10
  • mikanadel
  • tetiana0611
  • vladkar
  • yurii-v
  • elig-wix
  • nadav.a
  • vladyslavgoloshchapov
  • shireewill
  • thealmightycrumb
  • itaywix
  • olehr
  • haryelp
  • ekaterinaza
  • matang
  • ilyakwix
  • noammu
  • plisovyi
  • alissawix
  • daomry
  • dlvhdr
  • shakederin
  • noama
  • gregdamsky
  • dorza
  • 0xrezaa
  • yuriin
  • ranberko91
  • vladyslav-baliuk
  • yurimorkovnik
  • vladba-wix
  • danielgovrin
  • buchenpilar
  • oleksiiletushev
  • alisalachman