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