From 98cf19c8c5cc93a75a758bc8b536d7c237d67b44 Mon Sep 17 00:00:00 2001 From: Faisal Salman Date: Sat, 23 Aug 2025 19:06:07 +0700 Subject: [PATCH] Main d.ts export type UAParserHeaders --- src/main/ua-parser.d.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/ua-parser.d.ts b/src/main/ua-parser.d.ts index d1acf4b..088d2b0 100644 --- a/src/main/ua-parser.d.ts +++ b/src/main/ua-parser.d.ts @@ -3,7 +3,6 @@ // Definitions by: Faisal Salman 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> | Partial>[]; - type UAParserHeaders = Record | IncomingHttpHeaders | Headers; + export type UAParserHeaders = Record | Headers; export function UAParser(uastring?: string, extensions?: UAParserExt, headers?: UAParserHeaders): IResult; export function UAParser(uastring?: string, headers?: UAParserHeaders): IResult;