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 166bd24
Browse filesBrowse the repository at this point in the historyBrowse files
fix: precise types for EXPECTED_ANY and three bugs they exposed (#22681)
* refactor(types): replace EXPECTED_ANY with real types outside the JS syntax files
* refactor(types): narrow the remaining EXPECTED_ANY in stats, templates and tooling plugins
* fix(debug): profile the taps of hook maps in ProfilingPlugin
* fix: report import.meta errors raised inside async require callbacks
* fix: match urlHints rules written as logical conditions
* fix: match a rule's glob against relative values such as URL requests
* refactor(types): type TupleSet keys as a tuple and reuse MagicCommentOptions
* refactor(types): type the constant operator helpers by their compile-time operands
* refactor(types): build deserialize placeholders from one typed options object
* refactor(types): type fs implementations and passed-on schemas without casts
* fix(profiling): Profile cached hook map taps and consolidate changesets
* fix(devtool): include glob rules in cache key value type
* fix(types): support Node 20 filesystem implementation declarations
Match `urlHints` rules written with `and`, `or`, `not` and `glob` conditions; profile hook map taps, such as resolver and parser hooks, in `ProfilingPlugin`; report `import.meta` option errors inside `require.ensure` callbacks, not crash; and replace `any`, `object` and `Function` with precise types in the type definitions.
Copy file name to clipboardExpand all lines: docs/architecture.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -76,6 +76,7 @@ Every schema is derived from the module declaring its options by `generate-schem
76
76
-`declarations/WebpackOptions.ts` — **the source** for the configuration itself, and the only file left in `declarations/`. A definition of it that is also published as a schema of its own says `@publishes <path>`, and that schema is the reference.
-`schemas/**/*.d.json.ts` — hand-written, beside a schema `lib/` passes on whole: TypeScript reads it in place of the JSON, typing the schema as `Schema`, whose literal JSON types it never matches.
79
80
80
81
**Tests** — structure, naming and running one case: [TESTING_DOCS.md](../TESTING_DOCS.md).
0 commit comments