diff options
| author | Claude <noreply@anthropic.com> | 2026-11-20 10:07:02 +0000 |
|---|---|---|
| committer | chaoshuai <chaoshuai@anthropic.com> | 2026-11-20 10:50:42 -0800 |
| commit | 6c579670ee7be348e1cf1461a1372258ef8d3de1 (patch) | |
| tree | e74c89ff8d20e9694113b895fb117f72c56968af /plugins/code-modernization/hooks/reader | |
| parent | 860521781182f77357ac0ba23595258edbea62de (diff) | |
fix(theme-examples): write capability calls plainlyfeat/theme-examples-pointer-scenes
Writes the calls that set and clear a theme as plain $.noun.method(...)
calls. $.theme.set, $.theme.clear and $.ui.backdrop were each called
through a "!", because an engine may lack them; each now stands under a
"// @ts-expect-error" line instead, and what the one-line call was given
moves to a typed const above it, so the type checker still reads it.
"!" is TypeScript only, so what runs is unchanged.
A tool that reads a mod's source as written, without compiling it, such
as the plugin directory's validator, can then follow every call the mod
makes.
For the same reader, the member "read" of the type ProjectKeys becomes
"toRead", and the type alias CardElements ends with a semicolon.
Diffstat (limited to 'plugins/code-modernization/hooks/reader')
0 files changed, 0 insertions, 0 deletions
