3.0.7 • Published 6 months ago
@types/browserslist-useragent v3.0.7
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.