object-create-as-record.ts:10:24 - error SC1090: an Object.create result as a '{ name: string; shared: number }' value (a typed object holds its declared members as its own properties: it has no prototype to inherit from and no property attributes) is not supported yet

   9 | 
  10 | const declared: Base = Object.create(base);
     |                        ^~~~~~~~~~~~~~~~~~~
  11 | const asserted = Object.create(base) as Base;

  hint: keep the result untyped ('unknown', or 'Record<string, unknown>' for keyed access), or build the object with a literal or a spread

object-create-as-record.ts:11:18 - error SC1090: an Object.create result as a '{ name: string; shared: number }' value (a typed object holds its declared members as its own properties: it has no prototype to inherit from and no property attributes) is not supported yet

  10 | const declared: Base = Object.create(base);
  11 | const asserted = Object.create(base) as Base;
     |                  ^~~~~~~~~~~~~~~~~~~
  12 | const optional: Base | undefined = Object.create(base);

  hint: keep the result untyped ('unknown', or 'Record<string, unknown>' for keyed access), or build the object with a literal or a spread

object-create-as-record.ts:12:36 - error SC1090: an Object.create result as a '{ name: string; shared: number } | undefined' value (a typed object holds its declared members as its own properties: it has no prototype to inherit from and no property attributes) is not supported yet

  11 | const asserted = Object.create(base) as Base;
  12 | const optional: Base | undefined = Object.create(base);
     |                                    ^~~~~~~~~~~~~~~~~~~
  13 | function make(): Base {

  hint: keep the result untyped ('unknown', or 'Record<string, unknown>' for keyed access), or build the object with a literal or a spread

object-create-as-record.ts:14:10 - error SC1090: an Object.create result as a '{ name: string; shared: number }' value (a typed object holds its declared members as its own properties: it has no prototype to inherit from and no property attributes) is not supported yet

  13 | function make(): Base {
  14 |   return Object.create(base);
     |          ^~~~~~~~~~~~~~~~~~~
  15 | }

  hint: keep the result untyped ('unknown', or 'Record<string, unknown>' for keyed access), or build the object with a literal or a spread

object-create-as-record.ts:19:34 - error SC1090: an Object.create result as a '{ v: number }' value (a typed object holds its declared members as its own properties: it has no prototype to inherit from and no property attributes) is not supported yet

  18 | }
  19 | const described: { v: number } = Object.create(null, { v: { value: 3, enumerable: true } });
     |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  20 | const emptyRecord = Object.create(null) as { x?: number };

  hint: keep the result untyped ('unknown', or 'Record<string, unknown>' for keyed access), or build the object with a literal or a spread

object-create-as-record.ts:20:21 - error SC1090: an Object.create result as a '{ x: number | undefined }' value (a typed object holds its declared members as its own properties: it has no prototype to inherit from and no property attributes) is not supported yet

  19 | const described: { v: number } = Object.create(null, { v: { value: 3, enumerable: true } });
  20 | const emptyRecord = Object.create(null) as { x?: number };
     |                     ^~~~~~~~~~~~~~~~~~~
  21 | const inherited = Object.create(base) as Record<string, number>;

  hint: keep the result untyped ('unknown', or 'Record<string, unknown>' for keyed access), or build the object with a literal or a spread

object-create-as-record.ts:21:19 - error SC1090: an Object.create result as a '{ [key: string]: number }' value (a typed object holds its declared members as its own properties: it has no prototype to inherit from and no property attributes) is not supported yet

  20 | const emptyRecord = Object.create(null) as { x?: number };
  21 | const inherited = Object.create(base) as Record<string, number>;
     |                   ^~~~~~~~~~~~~~~~~~~
  22 | 

  hint: keep the result untyped ('unknown', or 'Record<string, unknown>' for keyed access), or build the object with a literal or a spread

object-create-as-record.ts:23:85 - error SC1090: an Object.create result as a '{ name: string; shared: number }' value (a typed object holds its declared members as its own properties: it has no prototype to inherit from and no property attributes) is not supported yet

  22 | 
  23 | console.log(declared.shared, asserted.shared, optional?.shared, make().shared, take(Object.create(base)));
     |                                                                                     ^~~~~~~~~~~~~~~~~~~
  24 | console.log(described.v, emptyRecord.x, inherited.shared);

  hint: keep the result untyped ('unknown', or 'Record<string, unknown>' for keyed access), or build the object with a literal or a spread