@types/caniuse-api
Version:
TypeScript definitions for caniuse-api
48 lines (35 loc) • 1.34 kB
Markdown
for caniuse-api (https://github.com/nyalab/caniuse-api#readme).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/caniuse-api.
````ts
export const features: string[];
export interface BrowserSupport {
[ ]: {
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[];
````
* Last updated: Mon, 20 Nov 2023 23:36:23 GMT
* Dependencies: none
These definitions were written by [Dave Cardwell](https://github.com/davecardwell), and [Matt Miller](https://github.com/matt123miller).
> `npm install --save @types/caniuse-api`
This package contains type definitions