Utility functions for working with typescript's AST
Usage
This package consists of two major parts: utilities and typeguard functions. By importing the project you will get both of them.
If you don't need everything offered by this package, you can select what should be imported. The parts that are not imported are never read from disk and may save some startup time and reduce memory consumtion.
If you only need typeguards you can explicitly import them:
If you only need the utilities you can also explicitly import them:
Typescript version dependency
This package is backwards compatible with typescript 2.8.0 at runtime although compiling might need a newer version of typescript installed.
Using typescript@next
might work, but it's not officially supported. If you encounter any bugs, please open an issue.
For compatibility with older versions of TypeScript typeguard functions are separated by TypeScript version. If you are stuck on typescript@2.8
, you should import directly from the submodule for that version:
Note that if you are also using utility functions, you should prefer the relevant submodule:
Last updated