// file a.ts
// file b.ts
import { test } from './a';
/**
* if we give handler type `() => boolean`, then it emits as expected.
* seems union type doesn't work here, either.
*/
function filter(handler: any) {
return function (target: any) {
// ...
};
}
class Wat {
@filter(() => test == 'abc')
static whatever() {
// ...
}
}
// file a.ts
// file b.ts