kaz29/cakephp-ts-export-plugin

CakePHP 的 TsExport 插件

安装次数: 1,577

依赖者: 0

建议者: 0

安全: 0

星标: 2

关注者: 1

分支: 0

公开问题: 0

类型:cakephp-plugin

1.0.2 2022-03-18 06:46 UTC

This package is auto-updated.

Last update: 2024-09-18 12:25:57 UTC


README

一个命令,用于输出 CakePHP 实体的 TypeScript 接口。

安装

您可以使用 composer 将此插件安装到您的 CakePHP 应用程序中。

安装 composer 包的推荐方法是

composer require --dev kaz29/cakephp-ts-export-plugin

用法

bin/cake export_entity --all

示例

bin/cake export_entity  Users
/**
 * User entity interface
 */
export interface User {
  id: number
  name: string
  email: string
  password: string
  created?: string
  modified?: string
}

作者

Kazuhiro Watanabe - cyo [at] mac.com - https://twitter.com/kaz_29

许可协议

CakePHP 的 TsExport 插件采用 MIT 许可协议 - 详细信息请参阅 LICENSE 文件