pac-api-typings

Type definitions for JavaScript APIs of PAC in TypeScript

Usage no npm install needed!

<script type="module">
  import pacApiTypings from 'https://cdn.skypack.dev/pac-api-typings';
</script>

README

pac-api-typings

npm version

Type definitions for JavaScript APIs of PAC in TypeScript

English | 简体中文

Installation

npm install pac-api-typings

Usage

Add the types package to your tsconfig.json file. For example:

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

Or you could use it with triple-slash directive. For example:

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

License

MIT © Qingrong Ke