mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-09-26 23:48:46 +03:00
Main d.ts export type UAParserHeaders
This commit is contained in:
parent
c9badeb345
commit
98cf19c8c5
3
src/main/ua-parser.d.ts
vendored
3
src/main/ua-parser.d.ts
vendored
@ -3,7 +3,6 @@
|
||||
// Definitions by: Faisal Salman <https://github.com/faisalman>
|
||||
|
||||
import type { Headers } from "undici";
|
||||
import type { IncomingHttpHeaders } from "undici/types/header";
|
||||
|
||||
declare namespace UAParser {
|
||||
|
||||
@ -53,7 +52,7 @@ declare namespace UAParser {
|
||||
type RegexMap = ((RegExp | string | (string | RegExp | Function)[])[])[];
|
||||
type UAParserProps = 'browser' | 'cpu' | 'device' | 'engine' | 'os';
|
||||
type UAParserExt = Partial<Record<UAParserProps, RegexMap>> | Partial<Record<UAParserProps, RegexMap>>[];
|
||||
type UAParserHeaders = Record<string, string> | IncomingHttpHeaders | Headers;
|
||||
export type UAParserHeaders = Record<string, string | string[] | undefined> | Headers;
|
||||
|
||||
export function UAParser(uastring?: string, extensions?: UAParserExt, headers?: UAParserHeaders): IResult;
|
||||
export function UAParser(uastring?: string, headers?: UAParserHeaders): IResult;
|
||||
|
Loading…
x
Reference in New Issue
Block a user