async findAll(): Cat[] { return this.cats; }
opened this issue · comments
Deleted user commented
/**
* 获得对象数组
* 函数后的冒号标识初始化项目定义类型,约束为Cat数组
*
* @copyright 问鼎公司 版权所有
* @author Wending <postmaster@g000.cn>
* @return {Cat[]} [description]
*/
async findAll(): Promise<Cat[]> {
return this.cats;
}