A command to output the typescript interface for CakePHP entities.
You can install this plugin into your CakePHP application using composer.
The recommended way to install composer packages is:
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
TsExport plugin for CakePHP is licensed under the MIT License - see the LICENSE file for details