# @types/polyfill-service

> TypeScript definitions for polyfill-service

Latest version **3.25.5** (published 2023-11-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/polyfill-service
pnpm add @types/polyfill-service
yarn add @types/polyfill-service
bun add @types/polyfill-service
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 3.25.5 |
| Published | 2023-11-21 |
| First published | 2018-06-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51449 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/polyfill-service
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/polyfill-service
- npm.io page: https://npm.io/package/@types/polyfill-service

## Recent versions

- 3.25.5 (latest) — 2023-11-21
- 3.25.1 (ts3.6) — 2021-07-08
- 3.25.0 (ts2.3) — 2018-06-27
- 3.25.4 — 2023-11-07
- 3.25.3 — 2023-10-18
- 3.25.2 — 2023-09-24

## README

# Installation
> `npm install --save @types/polyfill-service`

# Summary
This package contains type definitions for polyfill-service (https://github.com/financial-times/polyfill-service#readme).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/polyfill-service.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/polyfill-service/index.d.ts)
````ts
export type PolyfillFlag = "gated" | "always";
export type Unknown = "polyfill" | "ignore";

export interface Feature {
    flags?: PolyfillFlag[] | undefined;
}

export interface Features {
    [feature: string]: Feature;
}

export interface GetPolyfillsOptions {
    uaString: string;
    features?: Features | undefined;
    excludes?: string[] | undefined;
}

export interface GetPolyfillStringOptions extends GetPolyfillsOptions {
    minify?: boolean | undefined;
    unknown?: Unknown | undefined;
}

export interface PolyfillSpec {
    aliasOf?: Set<string> | undefined;
    flags: Set<PolyfillFlag>;
}

export interface GetPolyfillsResponse {
    [name: string]: PolyfillSpec;
}

export function listAllPolyfills(): Promise<readonly string[]>;

export function getPolyfillString(options: GetPolyfillStringOptions): Promise<string>;

export function getPolyfills(options: GetPolyfillsOptions): Promise<GetPolyfillsResponse>;

````

### Additional Details
 * Last updated: Mon, 20 Nov 2023 23:36:24 GMT
 * Dependencies: none

# Credits
These definitions were written by [Arturas Molcanovas](https://github.com/Alorel).

---
_Source: https://npm.io/package/@types/polyfill-service · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
