resolveConfigWriteScope receives the explicit scope as ProfileScope (nullable fields), so WeakSet<ConfigReadOrigin>.has() and the spread failed tsc. Key the set by object identity and cast the known origin on the way out.
resolveConfigWriteScope receives the explicit scope as ProfileScope (nullable fields), so WeakSet<ConfigReadOrigin>.has() and the spread failed tsc. Key the set by object identity and cast the known origin on the way out.