roadiz/dts-generator
最新稳定版本:v2.6.26
Composer 安装命令:
composer require roadiz/dts-generator
包简介
Roadiz sub-package which generates Typescript interfaces skeleton based on your schema
README 文档
README
Roadiz sub-package which generates Typescript interface declaration skeleton based on your schema.
Usage
use RZ\Roadiz\Contracts\NodeType\NodeTypeInterface; use RZ\Roadiz\Typescript\Declaration\DeclarationGeneratorFactory; use RZ\Roadiz\Typescript\Declaration\Generators\DeclarationGenerator; use Symfony\Component\HttpFoundation\ParameterBag; /** @var ParameterBag<NodeTypeInterface> $nodeTypesBag */ $nodeTypesBag = $serviceContainer->get('nodeTypesBag'); $declarationFactory = new DeclarationGeneratorFactory($nodeTypesBag); $declaration = new DeclarationGenerator($declarationFactory); echo $declaration->getContents();
Contributing
Report issues and send Pull Requests in the main Roadiz repository
统计信息
- 总下载量: 11.69k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 4
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-04-29