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 | // Type definitions for caniuse-api 3.0
|
12 | // Project: https://github.com/nyalab/caniuse-api#readme
|
13 | // Definitions by: Dave Cardwell <https://github.com/davecardwell>
|
14 | // Matt Miller <https://github.com/matt123miller>
|
15 | // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
16 |
|
17 | export const features: string[];
|
18 |
|
19 | export interface BrowserSupport {
|
20 | [browser: string]: {
|
21 | y?: number | undefined;
|
22 | n?: number | undefined;
|
23 | a?: number | undefined;
|
24 | x?: number | undefined;
|
25 | p?: number | undefined;
|
26 | };
|
27 | }
|
28 |
|
29 | export function getSupport(feature: string): BrowserSupport;
|
30 |
|
31 | export function isSupported(
|
32 | feature: string,
|
33 | browsers: string | ReadonlyArray<string>
|
34 | ): boolean;
|
35 |
|
36 | export function find(query: string): string[];
|
37 |
|
38 | export function getLatestStableBrowsers(): string[];
|
39 |
|
40 | export function setBrowserScope(
|
41 | browserscope: string | ReadonlyArray<string>
|
42 | ): void;
|
43 |
|
44 | export function getBrowserScope(): string[];
|
45 |
|
46 | ````
|
47 |
|
48 | ### Additional Details
|
49 | * Last updated: Tue, 06 Jul 2021 18:05:49 GMT
|
50 | * Dependencies: none
|
51 | * Global values: none
|
52 |
|
53 | # Credits
|
54 | These definitions were written by [Dave Cardwell](https://github.com/davecardwell), and [Matt Miller](https://github.com/matt123miller).
|
55 |
|
\ | No newline at end of file |