diff --git a/.vscode/settings.json b/.vscode/settings.json index 408daa5ef..ee706c419 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,21 +1,21 @@ { "[javascript]": { - "editor.defaultFormatter": "biomejs.biome" + "editor.defaultFormatter": "oxc.oxc-vscode" }, "[javascriptreact]": { - "editor.defaultFormatter": "esbenp.prettier-vscode" + "editor.defaultFormatter": "oxc.oxc-vscode" }, "[json]": { - "editor.defaultFormatter": "biomejs.biome" + "editor.defaultFormatter": "oxc.oxc-vscode" }, "[typescript]": { - "editor.defaultFormatter": "biomejs.biome" + "editor.defaultFormatter": "oxc.oxc-vscode" }, "[typescriptreact]": { - "editor.defaultFormatter": "biomejs.biome" + "editor.defaultFormatter": "oxc.oxc-vscode" }, "[jsonc]": { - "editor.defaultFormatter": "biomejs.biome" + "editor.defaultFormatter": "oxc.oxc-vscode" }, "[yaml]": { "editor.defaultFormatter": "esbenp.prettier-vscode" diff --git a/docs/reference.md b/docs/reference.md index c4591a868..f65a51974 100644 --- a/docs/reference.md +++ b/docs/reference.md @@ -564,7 +564,8 @@ DESCRIPTION USAGE $ apify actor generate-schema-types [path] - [--all-optional] [-o ] [--strict] + [--check] [-o ] + [--perspective actor|user] ARGUMENTS path Optional path to an input schema file or a directory containing @@ -573,13 +574,21 @@ ARGUMENTS directory. FLAGS - --all-optional Mark all properties as optional in - generated types. - -o, --output= Directory where the generated files - should be outputted. Defaults to src/__generated__/actor/ to - stay within the typical tsconfig rootDir. - --strict Whether generated interfaces should be - strict (no index signature [key: string]: unknown). + --check Compare the already generated + files against the schemas instead of writing them. + Nothing is written, and the command exits with code 1 + when a file is missing, was not written by this + command, or no longer matches its schema. + -o, --output= Directory where the + generated files should be outputted. Defaults to + src/__generated__/actor/ to stay within the typical + tsconfig rootDir. + --perspective=