Files
7bbf81f679 refactor(erc4337): forward explicit type args between user-operation actions (#15)
* refactor(erc4337): forward explicit type args between user-operation actions

Checking the four internal call sites that pass an open-generic
Bundler Client into another generic action accounted for ~90% of src
project check time (~170s of 194s): inference re-relates the entire
client surface, including the embedded action decorator and its OneOf
user-operation option unions, structurally at every such call. Passing
the caller's own type arguments explicitly makes every parameter an
identical alias instantiation, which relates by identity instead.

tsc -p src: 194s -> 17.5s check time. tsc -p test: 419s -> 221s.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01JD88oVVvT4TNHQBNMmNG9f

* chore(scripts): stop re-checking all of src as scripts project roots

scripts/tsconfig.json included ../src wholesale (required by composite),
so a full tsc -b checked the library three times: scripts, src, and
test. The test project already re-checks src under bun+node types;
scripts now checks only its own files plus whatever its imports reach
(1,771 -> 693 program files, 2m51s -> ~7s cold). Dropping composite
allows imported-but-unlisted files, matching the site project.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01JD88oVVvT4TNHQBNMmNG9f

* docs: add type-performance conventions

Recorded the profiling workflow and the measured lessons from the
ERC-4337 type-check investigation: forward explicit type arguments
between generic actions, and measure before retyping client parameters
into structural aliases.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01JD88oVVvT4TNHQBNMmNG9f

---------

Co-authored-by: Claude <[email protected]>
2026-07-18 07:01:13 +10:00

9 lines
145 B
JSON

{
"extends": "../tsconfig.base.json",
"include": ["."],
"compilerOptions": {
"noEmit": true,
"types": ["@types/bun", "node"]
}
}