generated-module
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

Generated Module

Important notes on default tsconfig:

  • always latest target
  • strict mode, but with implicit any allowed

Generating should always happen via some TypeScript builder and not via strings manipulations as Prisma do (use ts-morph or TS factory)

With this module you can use two types of builders:

The last one is most known and used, you can find a lot of examples with it on GitHub. And you can use https://ts-ast-viewer.com/:

  • write code that should be generated

  • select all

  • copy and adjust code from left-bottom window (Factory Code)

  • When using linking for testing or in workspace: Keep in mind this limitation

Usage Example

see ./example-time dir

  • TODO link action-inputs

  • But note, that in real world generating module should happen via postinstall hook

More Examples

TIME example

Readme

Keywords

none

Package Sidebar

Install

npm i generated-module

Weekly Downloads

5

Version

0.0.2

License

MIT

Unpacked Size

9.18 kB

Total Files

10

Last publish

Collaborators

  • zardoy