mirror of
https://github.com/denoland/deno.git
synced 2024-11-27 16:10:57 -05:00
8e914be742
This commit migrates repository from using "eslint" to "dlint" for linting JavaScript code.
21 lines
309 B
TypeScript
21 lines
309 B
TypeScript
// deno-lint-ignore-file
|
|
function a() {
|
|
console.log("a(): evaluated");
|
|
return (
|
|
_target: any,
|
|
_propertyKey: string,
|
|
_descriptor: PropertyDescriptor,
|
|
) => {
|
|
console.log("a(): called");
|
|
};
|
|
}
|
|
|
|
class B {
|
|
@a()
|
|
method() {
|
|
console.log("method");
|
|
}
|
|
}
|
|
|
|
const b = new B();
|
|
b.method();
|