Type Api Chrome Extension

Type Api chrome extension

Type Api for Chrome Download

Type Api chrome extension is TypeScript接口文档生成工具.

TypeScript接口文档生成工具.
Type Api是一个TypeScript接口文档生成器, 可以生成有类型声明的文档到你的剪贴板。

#### Pagination类使用泛型

为了减少无用的声明, 分页的接口不再声明`Pagination`类, 因此项目需要声明一个全局`Pagination`类, 接受泛型参数.

在项目的全局声明文件, 如`global.d.ts`加上如下声明:

```ts

// type-declarations/global.d.ts

type Pagination<T> = {

pageList: T[]; // 实体对象列表

pageSize: number; // 每页返回多少条数据

pageNo: number; // 当前页码,从1开始

totalCount: number; // 总记录数

totalPage: number; // 总页数

nextPage: number; // 下一页页码

prePage: number; // 上一页页码

lastPage: boolean; // 是否最后一页

firstPage: boolean; // 是否第一页

};

```

##### PageInfo分页类

财务后端分页使用的是PageInfo类, 同样的在全局声明文件加上:

```ts

// type-declarations/global.d.ts

type PageInfo<T> = {

pageNum: number;

pageSize: number;

size: number;

startRow: number;

endRow: number;

pages: number;

prePage: number;

nextPage: number;

isFirstPage: boolean;

isLastPage: boolean;

hasPreviousPage: boolean;

hasNextPage: boolean;

navigatePages: number;

navigatepageNums: number;

navigateFirstPage: number;

navigateLastPage: number;

total: number;

list: T[];

}

```

更多:https://git.lianjia.com/sh-fe/ts-declare-generator/-/blob/master/README.md

How to install Type Api chrome extension in chrome Browser

You can Follow the below Step By Step procedure to install the Type Api Chrome Extension to your Chrome Web browser.

  • Step 1: Go to the Chrome webstore https://chrome.google.com/webstore or download the extension Type Api Chrome Extension Download from https://pluginsaddonsextensions.com
  • Step 2: Now search for the Type Api in Chrome Webstore Search and click on the search button.
  • Step 3: click on the Type Api Chrome Extension Link
  • Step 4: in the next page click on the Add to Chrome button to Download and Install the Type Api extension for your Chrome Web browser .

Type Api Chrome extension Download

Looking for a method to Type Api Download for Chrome then this download link is for you.

It is the Type Api Chrome extension download link you can download and install Chrome Browser.

Download Type Api chrome extension (CRX)

Tags: Pageinfo , Pagination , Ts Declare Generator Blob , Type Pageinfo , Pagination , Typescript , Pagelist , Ts , Type Pagination , , Type Api Typescript , ,

Type Api Related Chrome Extensions