mirror of
https://github.com/swc-project/swc.git
synced 2024-12-28 08:04:43 +03:00
15 lines
261 B
TypeScript
15 lines
261 B
TypeScript
// @declaration: true
|
|
// @module: commonjs
|
|
|
|
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;
|
|
}
|
|
} |