intersection-values.ts:8:7 - error SC2008: values of type 'Branded' cannot be compiled: this intersection resolves to no runtime shape

  7 | declare function mint(): Branded;
  8 | const kept = mint();
    |       ^~~~
  9 | console.log(kept);

  hint: restate the intersection as a single interface or type literal with the combined members; mixin-produced intersections compile where the mixin chain pins one instantiation

intersection-values.ts:9:13 - error SC2004: uses of 'kept' inherit the blocker on its declaration

   8 | const kept = mint();
   9 | console.log(kept);
     |             ^~~~
  10 | 

  hint: the declaration of 'kept' did not compile — fix the diagnostic reported there and these sites clear with it