https://github.com/keqingrong/pac-api-typings
Type definitions for JavaScript APIs of PAC in TypeScript
https://github.com/keqingrong/pac-api-typings
pac proxy
Last synced: 4 months ago
JSON representation
Type definitions for JavaScript APIs of PAC in TypeScript
- Host: GitHub
- URL: https://github.com/keqingrong/pac-api-typings
- Owner: keqingrong
- License: mit
- Created: 2021-03-22T15:57:13.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-22T15:59:42.000Z (about 5 years ago)
- Last Synced: 2025-07-06T20:08:17.931Z (11 months ago)
- Topics: pac, proxy
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README-zh-hans.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Proxy Auto-Configuration (PAC) 类型定义文件
[](https://www.npmjs.com/package/pac-api-typings)
[Proxy Auto-Configuration (PAC)](https://developer.mozilla.org/en-US/docs/Web/HTTP/Proxy_servers_and_tunneling/Proxy_Auto-Configuration_PAC_file) 的 TypeScript 类型定义文件
[English](./README.md) | 简体中文
## 安装
```sh
npm install pac-api-typings
```
## 用法
你可以将该类型定义文件加到项目的 [tsconfig.json](https://www.typescriptlang.org/docs/handbook/tsconfig-json.html#types-typeroots-and-types) 编译配置中。例如:
```json
{
"compilerOptions": {
"typeRoots" : [
"./node_modules/@types",
"./node_modules/pac-api-typings",
"./typings",
]
}
}
```
或者搭配 [三斜线指令](https://www.typescriptlang.org/docs/handbook/triple-slash-directives.html) 使用。例如:
```ts
// ./typings/global.d.ts
///
```
## 许可证
MIT © Qingrong Ke