News for hackers. Stuff that matters.
Re:Announcing TypeScript 2.9 RC by suzuki on Friday May 18, 2018 @11:25PM (#17106487)
I am afraid they omitted "?" at

  type Partial<T> = {
      [K in keyof T]: T[K]
  }
in their announce. It should be

  type Partial<T> = {
      [K in keyof T]?: T[K]
  }
to make

  interface Thing {
      foo: string;
      bar: number;
      [baz]: boolean;
  }

  type PartialThing = Partial<Thing>;
equivalent to

  interface PartialThing {
      foo?: string;
      bar?: number;
      [baz]?: boolean;
  }

There are no comments on this comment yet.