UNPKG

1.34 kBMarkdownView Raw
1# Installation
2> `npm install --save @types/caniuse-api`
3
4# Summary
5This package contains type definitions for caniuse-api (https://github.com/nyalab/caniuse-api#readme).
6
7# Details
8Files 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
11export const features: string[];
12
13export 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
23export function getSupport(feature: string): BrowserSupport;
24
25export function isSupported(
26 feature: string,
27 browsers: string | readonly string[],
28): boolean;
29
30export function find(query: string): string[];
31
32export function getLatestStableBrowsers(): string[];
33
34export function setBrowserScope(
35 browserscope: string | readonly string[],
36): void;
37
38export 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
47These definitions were written by [Dave Cardwell](https://github.com/davecardwell), and [Matt Miller](https://github.com/matt123miller).
48
\No newline at end of file