@wixc3/typescript
TypeScript icon, indicating that this package has built-in type declarations

17.1.1 • 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

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @wixc3/typescript

      Weekly Downloads

      81

      Version

      17.1.1

      License

      MIT

      Unpacked Size

      90.5 kB

      Total Files

      44

      Last publish

      Collaborators

      • dorza
      • vladba-wix
      • danielgovrin
      • yurimorkovnik
      • ranberko91
      • 0xrezaa
      • gregdamsky
      • alissawix
      • ekaterinaza
      • noammu
      • buchenpilar
      • oleksiiletushev
      • alisalachman
      • vladyslav-baliuk
      • yuriin
      • ilyakwix
      • matang
      • daomry
      • noama
      • shakederin
      • dlvhdr
      • plisovyi
      • pijusn
      • shireewill
      • haryelp
      • iuriikowix
      • itaywix
      • thealmightycrumb
      • devex-infra
      • olehr
      • tomrav
      • avi.vahl
      • alexswix
      • 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