1 | # Installation
|
2 | > `npm install --save @types/caniuse-api`
|
3 |
|
4 | # Summary
|
5 | This package contains type definitions for caniuse-api (https://github.com/nyalab/caniuse-api#readme).
|
6 |
|
7 | # Details
|
8 | Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/caniuse-api.
|
9 | ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/caniuse-api/index.d.ts)
|
10 | ````ts
|
11 | export const features: string[];
|
12 |
|
13 | export interface BrowserSupport {
|
14 | [browser: string]: {
|
15 | y?: number | undefined;
|
16 | n?: number | undefined;
|
17 | a?: number | undefined;
|
18 | x?: number | undefined;
|
19 | p?: number | undefined;
|
20 | };
|
21 | }
|
22 |
|
23 | export function getSupport(feature: string): BrowserSupport;
|
24 |
|
25 | export function isSupported(
|
26 | feature: string,
|
27 | browsers: string | readonly string[],
|
28 | ): boolean;
|
29 |
|
30 | export function find(query: string): string[];
|
31 |
|
32 | export function getLatestStableBrowsers(): string[];
|
33 |
|
34 | export function setBrowserScope(
|
35 | browserscope: string | readonly string[],
|
36 | ): void;
|
37 |
|
38 | export function getBrowserScope(): string[];
|
39 |
|
40 | ````
|
41 |
|
42 | ### Additional Details
|
43 | * Last updated: Mon, 20 Nov 2023 23:36:23 GMT
|
44 | * Dependencies: none
|
45 |
|
46 | # Credits
|
47 | These definitions were written by [Dave Cardwell](https://github.com/davecardwell), and [Matt Miller](https://github.com/matt123miller).
|
48 |
|
\ | No newline at end of file |