# @types/caniuse-api

> TypeScript definitions for caniuse-api

Latest version **3.0.6** (published 2023-11-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/caniuse-api
pnpm add @types/caniuse-api
yarn add @types/caniuse-api
bun add @types/caniuse-api
```

## 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.0.6 |
| Published | 2023-11-20 |
| First published | 2018-10-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51450 |
| Maintainers | types |

## Links

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

## Recent versions

- 3.0.6 (latest) — 2023-11-20
- 3.0.3 (ts4.3) — 2023-09-04
- 3.0.2 (ts3.6) — 2021-07-06
- 3.0.1 (ts3.2) — 2020-10-20
- 3.0.0 (ts2.0) — 2018-10-27
- 3.0.5 — 2023-11-07
- 3.0.4 — 2023-10-17

## README

# Installation
> `npm install --save @types/caniuse-api`

# Summary
This package contains type definitions for caniuse-api (https://github.com/nyalab/caniuse-api#readme).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/caniuse-api.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/caniuse-api/index.d.ts)
````ts
export const features: string[];

export interface BrowserSupport {
    [browser: string]: {
        y?: number | undefined;
        n?: number | undefined;
        a?: number | undefined;
        x?: number | undefined;
        p?: number | undefined;
    };
}

export function getSupport(feature: string): BrowserSupport;

export function isSupported(
    feature: string,
    browsers: string | readonly string[],
): boolean;

export function find(query: string): string[];

export function getLatestStableBrowsers(): string[];

export function setBrowserScope(
    browserscope: string | readonly string[],
): void;

export function getBrowserScope(): string[];

````

### Additional Details
 * Last updated: Mon, 20 Nov 2023 23:36:23 GMT
 * Dependencies: none

# Credits
These definitions were written by [Dave Cardwell](https://github.com/davecardwell), and [Matt Miller](https://github.com/matt123miller).

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