@@ -30,7 +30,7 @@ Create a narrowing whenever you are writing a component (or group of components)
3030
3131``` ts
3232import {
33- BlockMetaKeyAtomFnType , // only if you use getBlockMetaKeyAtom
33+ MetaKeyAtomFnType , // only if you use getBlockMetaKeyAtom or getTabMetaKeyAtom
3434 ConnConfigKeyAtomFnType , // only if you use getConnConfigKeyAtom
3535 SettingsKeyAtomFnType , // only if you use getSettingsKeyAtom
3636 WaveEnv ,
@@ -77,12 +77,14 @@ export type MyEnv = WaveEnvSubset<{
7777
7878 // --- key-parameterized atom factories: enumerate the keys you use ---
7979 getSettingsKeyAtom: SettingsKeyAtomFnType <" app:focusfollowscursor" | " window:magnifiedblockopacity" >;
80- getBlockMetaKeyAtom: BlockMetaKeyAtomFnType <" view" | " frame:title" | " connection" >;
80+ getBlockMetaKeyAtom: MetaKeyAtomFnType <" view" | " frame:title" | " connection" >;
81+ getTabMetaKeyAtom: MetaKeyAtomFnType <" tabid" | " name" >;
8182 getConnConfigKeyAtom: ConnConfigKeyAtomFnType <" conn:wshenabled" >;
8283
8384 // --- other atom helpers: copy verbatim ---
8485 getConnStatusAtom: WaveEnv [" getConnStatusAtom" ];
8586 getLocalHostDisplayNameAtom: WaveEnv [" getLocalHostDisplayNameAtom" ];
87+ getConfigBackgroundAtom: WaveEnv [" getConfigBackgroundAtom" ];
8688}>;
8789```
8890
@@ -104,7 +106,8 @@ Every `WaveEnvSubset<T>` automatically includes the mock fields — you never ne
104106| ` wos ` | ` wos: WaveEnv["wos"] ` | Take the whole ` wos ` object (no sub-typing needed), but ** only add it if ` wos ` is actually used** . |
105107| ` services ` | ` services: { svc: WaveEnv["services"]["svc"]; } ` | List each service used; take the whole service object (no method-level narrowing). |
106108| ` getSettingsKeyAtom ` | ` SettingsKeyAtomFnType<"key1" \| "key2"> ` | Union all settings keys accessed. |
107- | ` getBlockMetaKeyAtom ` | ` BlockMetaKeyAtomFnType<"key1" \| "key2"> ` | Union all block meta keys accessed. |
109+ | ` getBlockMetaKeyAtom ` | ` MetaKeyAtomFnType<"key1" \| "key2"> ` | Union all block meta keys accessed. |
110+ | ` getTabMetaKeyAtom ` | ` MetaKeyAtomFnType<"key1" \| "key2"> ` | Union all tab meta keys accessed. |
108111| ` getConnConfigKeyAtom ` | ` ConnConfigKeyAtomFnType<"key1"> ` | Union all conn config keys accessed. |
109112| All other ` WaveEnv ` fields | ` WaveEnv["fieldName"] ` | Copy type verbatim. |
110113
0 commit comments