You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 555fd03
Browse filesBrowse the repository at this point in the historyBrowse files
chore: generate types with the TypeScript CLI instead of tooling
`tooling` is deprecated. Declarations are now emitted by `tsc` from the
JSDoc in `lib/` into `types/`, as in webpack-dev-middleware:
npm run build:types
# del-cli types && tsc -p tsconfig.types.json && prettier --write types
CI rebuilds them in the lint job and fails when the committed `types/`
are out of date.
`types.d.ts` stays the package's `types` entry and re-exports the
generated declarations in the same shape as before: every class as value
and type, the same helper types and `util.stringBufferUtils`. It is
type-checked by `lint:types-test`.
`@private` JSDoc tags are removed from `lib/` (no runtime change). `tsc`
emits them as `private` members, which makes TypeScript compare classes
nominally, so two installed copies of this package (even the same
version) would reject each other's instances. Without them the classes
stay structurally typed, as with the previous generated types.
The `inherit-types` and `format-file-header` checks are removed with
`tooling`.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01ThsbPWvW5vnYWEaFs2Q22F
Copy file name to clipboardExpand all lines: .github/workflows/test.yml
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,12 @@ jobs:
44
44
restore-keys: lint-eslint-
45
45
46
46
- run: npm run lint
47
+
48
+
- name: Build types
49
+
run: npm run build:types
50
+
51
+
- name: Check types are up to date
52
+
run: if [ -n "$(git status types --porcelain)" ]; then echo "Types are out of date. Update them by running 'npm run build:types'"; git status types --porcelain; exit 1; else echo "Types are up to date"; fi
0 commit comments