mirror of
https://github.com/swc-project/swc.git
synced 2024-12-25 06:36:08 +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;
|
|
}
|
|
} |