record-width.ts:31:18 - error SC2002: record shapes must match exactly or width-coerce: expected '{ a: boolean | undefined; [key: string]: boolean | string | undefined }', got '{ b: string }' — the expected field 'a' ('boolean | undefined') cannot take a runtime key collision from the 'boolean | string | undefined' signature slot

  30 | const plain = { b: "hi" };
  31 | const odd: Odd = plain;
     |                  ^~~~~
  32 | console.log(odd);

  hint: width subtyping compiles as a copy (each expected field copied off the source; extra fields drop) — this pair is outside the copy's rules; build a literal with exactly the expected fields instead

record-width.ts:32:13 - error SC1090: console.log of '{ a: boolean | undefined; [key: string]: boolean | string | undefined }' values (index-signature records with declared fields have no inspect lowering yet (JS interleaves integer keys across the declared and dynamic key sets)) are not supported yet

  31 | const odd: Odd = plain;
  32 | console.log(odd);
     |             ^~~
  33 | 

record-width.ts:39:22 - error SC2002: record shapes must match exactly or width-coerce: expected '{ isTTY: boolean; write: (string) => boolean }', got 'WriteStream'

  38 | type TtySink = { write(text: string): boolean; isTTY: boolean };
  39 | const tty: TtySink = process.stdout;
     |                      ^~~~~~~~~~~~~~
  40 | console.log(tty.isTTY);

  hint: width subtyping compiles as a copy (each expected field copied off the source; extra fields drop) — this pair is outside the copy's rules; build a literal with exactly the expected fields instead

record-width.ts:54:25 - error SC2002: record shapes must match exactly or width-coerce: expected '{ write: (string) => boolean }', got 'Writable'

  53 | type LineSink = { write(line: string): boolean };
  54 | const lines: LineSink = new Writable({
     |                         ^~~~~~~~~~~~~~
  55 |   write(_chunk, _encoding, callback) {

  hint: width subtyping compiles as a copy (each expected field copied off the source; extra fields drop) — this pair is outside the copy's rules; build a literal with exactly the expected fields instead