Jump to conversation
Unresolved conversations (0)
Nice work!

Nice work!

All of your conversations have been resolved.

Resolved conversations (18)
@Convly Convly Jul 25, 2022
```suggestion To generate typings for your project schemas use the [`ts:generate-types` CLI command](/developer-docs/latest/developer-resources/cli/CLI.md#strapi-ts-generate-types). The `ts:generate-types` command creates the file `schemas.d.ts`, at the project root, which stores the schema typings. The optional `--verbose` flag returns a detailed table of the generated schemas. ```
Outdated
...per-docs/latest/development/typescript.md
pwizla
Pierre Wizla
@Convly Convly Jul 25, 2022
```suggestion Generate typings with the verbose mode enabled, displaying a detailed table of the generated schemas. ```
Outdated
...ocs/latest/developer-resources/cli/CLI.md
@pwizla pwizla Jul 22, 2022
```suggestion To generate typings for your project schemas use the [`ts:generate-types` CLI command](/developer-docs/latest/developer-resources/cli/CLI.md#strapi-ts-generate-types). The `ts:generate-types` command creates the file `schemas.d.ts`, at the project root, which stores the schema typings. The optional `--verbose` flag returns the project type definitions in the terminal. ```
Outdated
...per-docs/latest/development/typescript.md
@Convly Convly Jul 21, 2022
Perfect!
...per-docs/latest/development/typescript.md
@Convly Convly Jul 21, 2022
`ts:generate-types`
Outdated
...per-docs/latest/development/typescript.md
@Convly Convly Jul 21, 2022
ts:generate-types
Outdated
...per-docs/latest/development/typescript.md
@Convly Convly Jul 21, 2022
`ts:generate-types`
Outdated
...per-docs/latest/development/typescript.md
@Convly Convly Jul 21, 2022
`ts:generate-types` :)
Outdated
...per-docs/latest/development/typescript.md
Convly
Jean-Sébastien Herbaux
@Convly Convly Jul 21, 2022
`ts:generate-types`
Outdated
...velopment/backend-customization/models.md
@Convly Convly Jul 21, 2022
It also works for JavaScript projects, which will be nice since it means they'll also benefit from strong typing. I think we can remove this block
Outdated
...ocs/latest/developer-resources/cli/CLI.md
@Convly Convly Jul 21, 2022
Same as above
Outdated
...ocs/latest/developer-resources/cli/CLI.md
@Convly Convly Jul 21, 2022
It's now `strapi ts:generate-types`
Outdated
...ocs/latest/developer-resources/cli/CLI.md
@pwizla pwizla Jul 21, 2022
```suggestion In [TypeScript](/developer-docs/latest/development/typescript.md)-enabled projects schema typings can be generated using the `content-types:generate-types` command. ```
Outdated
...velopment/backend-customization/models.md
@pwizla pwizla Jul 21, 2022
```suggestion The `strapi content-types:generate-types` command only works in [TypeScript](/developer-docs/latest/development/typescript.md)-enabled projects. ```
Outdated
...ocs/latest/developer-resources/cli/CLI.md
@Convly Convly Jul 7, 2022
```suggestion The `strapi.compile()` function should be mostly used for developing tools that need to start a Strapi instance and detect whether the project includes TypeScript code. `strapi.compile()` automatically detects the project language. If the project code contains any TypeScript code, `strapi.compile()` compiles the code and returns a context with specific values for the directories that Strapi requires: ```
Outdated
...per-docs/latest/development/typescript.md
@Convly Convly Jul 7, 2022
```suggestion Strapi can be run programmatically by using the `strapi()` factory. Since the code of TypeScript projects is compiled in a specific directory, the parameter `distDir` should be passed to the factory to indicate where the compiled code should be read: ```
Outdated
...per-docs/latest/development/typescript.md
@Convly Convly Jul 7, 2022
```suggestion ### Use the `strapi()` factory ```
Outdated
...per-docs/latest/development/typescript.md
@Convly Convly Jul 7, 2022
passing where? ```suggestion Starting Strapi programmatically in a TypeScript project requires indicating to Strapi where the code is compiled. ```
Outdated
...per-docs/latest/development/typescript.md