3.0.7 • Published 6 months ago

@types/browserslist-useragent v3.0.7

Weekly downloads
19,333
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/browserslist-useragent

Summary

This package contains type definitions for browserslist-useragent (https://github.com/browserslist/browserslist-useragent).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/browserslist-useragent.

index.d.ts

// Type definitions for browserslist-useragent 3.0
// Project: https://github.com/browserslist/browserslist-useragent
// Definitions by: nju33 <https://github.com/nju33>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

export interface ResolvedUserAgent {
    family: string;
    version: string;
}

export interface BrowserslistUseragentOptions {
    browsers?: string[] | undefined;
    env?: string | undefined;
    ignorePatch?: boolean | undefined;
    ignoreMinor?: boolean | undefined;
    allowHigherVersions?: boolean | undefined;
    /**
     * @default process.cwd()
     */
    path?: string | undefined;
}

export function matchesUA(
    uaString: string,
    opts?: BrowserslistUseragentOptions
): boolean;
export function resolveUserAgent(uaString: string): ResolvedUserAgent;
export function normalizeQuery(query: string): string;

Additional Details

  • Last updated: Thu, 08 Jul 2021 00:35:43 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by nju33.

3.0.7

6 months ago

3.0.6

7 months ago

3.0.5

8 months ago

3.0.4

3 years ago

3.0.3

3 years ago

3.0.2

3 years ago

3.0.1

4 years ago

3.0.0

5 years ago