@types/wicg-ua-client-hints
v2026.2.0
Published
TypeScript definitions for wicg-ua-client-hints
Readme
Installation
npm install --save @types/wicg-ua-client-hints
Summary
This package contains type definitions for wicg-ua-client-hints (https://github.com/WICG/ua-client-hints/).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/wicg-ua-client-hints.
index.d.ts
export {};
declare global {
// https://wicg.github.io/ua-client-hints/#dictdef-navigatoruabrandversion
interface NavigatorUABrandVersion {
brand: string;
version: string;
}
// https://wicg.github.io/ua-client-hints/#dictdef-uadatavalues
interface UADataValues {
architecture: string;
bitness: string;
brands: NavigatorUABrandVersion[];
formFactors: string[];
fullVersionList: NavigatorUABrandVersion[];
model: string;
mobile: boolean;
platform: string;
platformVersion: string;
/**
* @deprecated in favor of fullVersionList
*/
uaFullVersion: string;
wow64: boolean;
}
// https://wicg.github.io/ua-client-hints/#dictdef-ualowentropyjson
interface UALowEntropyJSON {
brands: NavigatorUABrandVersion[];
mobile: boolean;
platform: string;
}
// https://wicg.github.io/ua-client-hints/#navigatoruadata
interface NavigatorUAData {
readonly brands: NavigatorUABrandVersion[];
readonly mobile: boolean;
readonly platform: string;
getHighEntropyValues(hints: string[]): Promise<UADataValues>;
toJSON(): UALowEntropyJSON;
}
// https://wicg.github.io/ua-client-hints/#navigatorua
interface NavigatorUA {
/**
* Available only in secure contexts.
*/
readonly userAgentData: NavigatorUAData;
}
// eslint-disable-next-line @typescript-eslint/no-empty-interface
interface Navigator extends NavigatorUA {}
// eslint-disable-next-line @typescript-eslint/no-empty-interface
interface WorkerNavigator extends NavigatorUA {}
}
Additional Details
- Last updated: Sun, 02 Aug 2026 06:21:38 GMT
- Dependencies: none
Credits
These definitions were written by Jeremy Nguyen.
