Commit d4d8b16
committed
fix(policy): restore Policy typedef import in policy-validators (addresses Jonathan review)
In ccc1b5e the `Policy` typedef import in policy-validators.js was
dropped alongside the dead `collectReferencedOperations` function — but
`validatePolicy` still uses `@param {Policy}`. The hand-edited
`policy-validators.d.ts` carries `export type Policy = …`, but a fresh
`npm run build:types` (pinned tsc 5.8.3) regenerates it without that
export, leaving the param type unresolved.
Re-adding the typedef makes `build:types` reproduce the committed
`policy-validators.d.ts` byte-for-byte (verified locally).
Catch by jonathunne:
#55 (comment)1 parent ccc1b5e commit d4d8b16
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
0 commit comments