mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-19 16:39:50 +00:00
fix: correct stale path for type-guards in type-safety rules (#2653)
The type-safety.md doc referenced packages/cli/src/shared/type-guards.ts which does not exist. The actual location is packages/shared/src/type-guards.ts, exported as @openrouter/spawn-shared. Also adds isPlainObject which is exported from the same module but was missing from the list. Co-authored-by: spawn-qa-bot <qa@openrouter.ai> Co-authored-by: L <6723574+louisgv@users.noreply.github.com>
This commit is contained in:
parent
87391b2a4a
commit
df14acf8df
1 changed files with 1 additions and 1 deletions
|
|
@ -84,4 +84,4 @@ global.fetch = mock(() => Promise.resolve(new Response("Error", { status: 500 })
|
|||
|
||||
### Shared utilities
|
||||
- `packages/cli/src/shared/parse.ts` — `parseJsonWith(text, schema)` and `parseJsonObj(text)`
|
||||
- `packages/cli/src/shared/type-guards.ts` — `isString`, `isNumber`, `hasStatus`, `getErrorMessage`, `toRecord`, `toObjectArray`
|
||||
- `packages/shared/src/type-guards.ts` (imported as `@openrouter/spawn-shared`) — `isString`, `isNumber`, `hasStatus`, `getErrorMessage`, `toRecord`, `toObjectArray`, `isPlainObject`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue