@ genapi/ 共享
GenAPI的共享类型和公用事业:配置类型,AST语句类型,注入/提供上下文等.
安装
pnpm add @genapi/shared
API 密码
弹出
inject(scope)
获取给定范围的当前管道上下文( 默认 ): 'default') (中文(简体) ). 用于在管道步骤内读取配置/图.
示例
const { configRead, interfaces } = inject()
const config = inject('get/user/1')
ApiPipeline
- 类型数字 :
undefined - 默认数字 :
undefined
context
- 类型数字 :
any - 默认数字 :
{}
provide()
许可证
自动更新 自动