declare export class C { get(): T | null; get(v: T): T; } type Obj = {foo: string}; export type Obj2 = {...Obj} export type Bad = C;