types-4-strapi-2
types-4-strapi-2 copied to clipboard
Automate the creation of typescript interfaces for your strapi 4 projects
All content types has the fields `createdAt` and `updatedAt`. Right now those fields are only set if draft ad publish is enabled.
When running the following script ``` "typegen": "t4s -o ./src/types -r load-strapi --prettier .prettierrc" ``` It outputs the following file in `src/types/builtins/Media.ts` ``` import { IMediaFormat } from './MediaFormat'; import...
### Description Let's say a strapi project uses 2 different types of plugins, e.g. `nav1` and `nav2` which both export some content type `Navigation` Generating types for the project: `$...
The imports/exports generated by this tool are not compatible with [ECMAScript Modules](https://devblogs.microsoft.com/typescript/announcing-typescript-4-7/#esm-nodejs) out of the box, as they are missing the mandatory file extension. It would be useful to be...
Strapi allows for required fields, if a required field is used on a content-type or component it makes sense to create a typescript interface which has that field as a...
It is possible to pass invalid characters to the prefix flag example `--prefix "I-"`. This will result in an error and would also make invalid interface names.
The table to display which flags can be used should be automatically generated. This can be done by creating a json file which contains the options, then creating a small...
Please add support for strapi-plugin-transformer a.k.a Ttransformer