@types/caniuse-api
    TypeScript icon, indicating that this package has built-in type declarations

    3.0.2 • Public • Published

    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

    // Type definitions for caniuse-api 3.0
    // Project: https://github.com/nyalab/caniuse-api#readme
    // Definitions by: Dave Cardwell <https://github.com/davecardwell>
    //                 Matt Miller <https://github.com/matt123miller>
    // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
    
    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 | ReadonlyArray<string>
    ): boolean;
    
    export function find(query: string): string[];
    
    export function getLatestStableBrowsers(): string[];
    
    export function setBrowserScope(
        browserscope: string | ReadonlyArray<string>
    ): void;
    
    export function getBrowserScope(): string[];

    Additional Details

    • Last updated: Tue, 06 Jul 2021 18:05:49 GMT
    • Dependencies: none
    • Global values: none

    Credits

    These definitions were written by Dave Cardwell, and Matt Miller.

    Keywords

    none

    Install

    npm i @types/caniuse-api

    DownloadsWeekly Downloads

    32,870

    Version

    3.0.2

    License

    MIT

    Unpacked Size

    4.74 kB

    Total Files

    4

    Last publish

    Collaborators

    • types