dzzzzzy / Nestjs-Learning

nestjs 学习教程 :books:,跟我一起学习 nest 框架~ :muscle:

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

async findAll(): Cat[] { return this.cats; }

opened this issue · comments

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