bldr/global.d.ts
Rama master · réplica de lectura del repositorio original.
// CSS
declare module '*.css'
declare module '*.module.css'
declare module '*.module.scss'
// WebkitAppRegion is declared in ../global.d.ts, a module file. A declare-module
// augmentation in this global script would replace csstype.
// See: https://github.com/lukewarlow/user-agent-data-types#readme
// WICG Spec: https://wicg.github.io/ua-client-hints
declare interface Navigator extends NavigatorUA {}
declare interface WorkerNavigator extends NavigatorUA {}
// https://wicg.github.io/ua-client-hints/#navigatorua
declare interface NavigatorUA {
readonly userAgentData?: NavigatorUAData
}
// https://wicg.github.io/ua-client-hints/#dictdef-navigatoruabrandversion
interface NavigatorUABrandVersion {
readonly brand: string
readonly version: string
}
// https://wicg.github.io/ua-client-hints/#dictdef-uadatavalues
interface UADataValues {
readonly brands?: NavigatorUABrandVersion[]
readonly mobile?: boolean
readonly platform?: string
readonly architecture?: string
readonly bitness?: string
readonly formFactor?: string[]
readonly model?: string
readonly platformVersion?: string
/** @deprecated in favour of fullVersionList */
readonly uaFullVersion?: string
readonly fullVersionList?: NavigatorUABrandVersion[]
readonly wow64?: boolean
}
// https://wicg.github.io/ua-client-hints/#dictdef-ualowentropyjson
interface UALowEntropyJSON {
readonly brands: NavigatorUABrandVersion[]
readonly mobile: boolean
readonly platform: string
}
// https://wicg.github.io/ua-client-hints/#navigatoruadata
interface NavigatorUAData extends UALowEntropyJSON {
getHighEntropyValues(hints: string[]): Promise<UADataValues>
toJSON(): UALowEntropyJSON
}