Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 1.01 KB

README-zh-hans.md

File metadata and controls

40 lines (28 loc) · 1.01 KB

Proxy Auto-Configuration (PAC) 类型定义文件

npm version

Proxy Auto-Configuration (PAC) 的 TypeScript 类型定义文件

English | 简体中文

安装

npm install pac-api-typings

用法

你可以将该类型定义文件加到项目的 tsconfig.json 编译配置中。例如:

{
  "compilerOptions": {
    "typeRoots" : [
      "./node_modules/@types",
      "./node_modules/pac-api-typings",
      "./typings",
    ]
  }
}

或者搭配 三斜线指令 使用。例如:

// ./typings/global.d.ts
/// <reference types="pac-api-typings" />

许可证

MIT © Qingrong Ke