TypeScript/tests/cases/fourslash/codefixClassImplementInterface_omit.ts

31 lines
483 B
TypeScript

/// <reference path="fourslash.ts" />
////interface One {
//// a: number;
//// b: string;
////}
////
////interface Two extends Omit<One, "a"> {
//// c: boolean;
////}
////
////class TwoStore implements Two {[| |]}
verify.codeFix({
description: "Implement interface 'Two'",
newFileContent:
`interface One {
a: number;
b: string;
}
interface Two extends Omit<One, "a"> {
c: boolean;
}
class TwoStore implements Two {
c: boolean;
b: string;
}`,
});