mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 19:21:33 +03:00
15 lines
268 B
TypeScript
15 lines
268 B
TypeScript
// @declaration: true
|
|
// @module: commonjs
|
|
|
|
export interface Foo {
|
|
a: string;
|
|
b: number;
|
|
c: boolean;
|
|
}
|
|
|
|
export const obj = {
|
|
m(): this is Foo {
|
|
let dis = this as {} as Foo;
|
|
return dis.a != null && dis.b != null && dis.c != null;
|
|
}
|
|
} |