-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fix test bug, update github actions
- Loading branch information
1 parent
fd2e8c0
commit cb30319
Showing
8 changed files
with
23 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,16 @@ | ||
export const say = () => 'hello mock' | ||
import 'reflect-metadata' | ||
|
||
say() | ||
@Reflect.metadata('type', 'class') | ||
class A { | ||
constructor(public name: string, public age: number) {} | ||
@Reflect.metadata(undefined, undefined) | ||
method(): boolean { | ||
return true | ||
} | ||
} | ||
|
||
const t1 = Reflect.getMetadata('design:paramtypes', A) | ||
const t2 = Reflect.getMetadata('design:returntype', A.prototype, 'method') | ||
const t3 = Reflect.getMetadata('design:type', A.prototype, 'method') | ||
|
||
console.log(...t1, t2, t3) |