Skip to content
This repository was archived by the owner on Nov 17, 2025. It is now read-only.
/ type-extractor Public archive

A TypeScript transformer for extracting static type information from decorated targets at compile time.

License

Notifications You must be signed in to change notification settings

cocojs-org/type-extractor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚠️ 此仓库已废弃!
本项目不再维护。已迁移到 coconut-framework

type-extractor

type-extractor是基于ts-patch的Program Transformer,目的是在编译时提取装饰器目标的类型信息,并作为参数回传给装饰器。

已实现的装饰器

  • @constructorParams():提取被装饰器类的构造函数的类型
  • @autowired(): 提取被装饰器field的类型
  • @component(): 提取被装饰器方法的返回值的类型

About

A TypeScript transformer for extracting static type information from decorated targets at compile time.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published