Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
25 changes: 17 additions & 8 deletions docs/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,8 @@ DESCRIPTION

USAGE
$ apify actor generate-schema-types [path]
[--all-optional] [-o <value>] [--strict]
[--check] [-o <value>]
[--perspective actor|user]

ARGUMENTS
path Optional path to an input schema file or a directory containing
Expand All @@ -573,13 +574,21 @@ ARGUMENTS
directory.

FLAGS
--all-optional Mark all properties as optional in
generated types.
-o, --output=<value> 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=<value> Directory where the
generated files should be outputted. Defaults to
src/__generated__/actor/ to stay within the typical
tsconfig rootDir.
--perspective=<option> Whose side of the data to
type. 'actor' is for code running inside the Actor: it
reads the input and writes the storages. 'user' is for
code calling the Actor: it writes the input and reads
the storages.
<options: actor|user>
```

##### `apify actor get-input`
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"dev:actor": "tsx ./src/entrypoints/actor.ts",
"test:all": "pnpm run test:local && pnpm run test:api",
"test:local": "vitest run --testNamePattern \"^((?!\\[api]).)*$\" --exclude ./test/api --exclude ./test/e2e",
"test:lib:local": "vitest run --dir ./test/local/lib",
"test:e2e": "vitest run --testNamePattern \"\\[e2e\\]\" --exclude ./test/api",
"test:e2e:local": "vitest run --testNamePattern \"^(?=.*\\[e2e\\])(?!.*\\[api\\]).*$\" --exclude ./test/api",
"test:api": "vitest run --testNamePattern \"^(?=.*\\[api\\])(?!.*\\[e2e\\]).*$\" --exclude ./test/e2e",
Expand Down Expand Up @@ -103,7 +104,6 @@
"istextorbinary": "~9.5.0",
"jju": "~1.4.0",
"js-levenshtein": "^1.1.6",
"json-schema-to-typescript": "^16.0.0",
"mime": "~4.1.0",
"open": "~11.0.0",
"semver": "~7.8.0",
Expand Down
153 changes: 70 additions & 83 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

Loading
Loading