Skip to content

Commit

Permalink
Fix d.ts Record for extensions as Partial
Browse files Browse the repository at this point in the history
  • Loading branch information
faisalman committed Nov 30, 2023
1 parent e4f2463 commit 3622b61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/ua-parser.d.ts
Expand Up @@ -48,7 +48,7 @@ declare namespace UAParser {

type RegexMap = ((RegExp | string | (string | RegExp | Function)[])[])[];
type UAParserProps = 'browser' | 'cpu' | 'device' | 'engine' | 'os';
type UAParserExt = Record<UAParserProps, RegexMap>;
type UAParserExt = Partial<Record<UAParserProps, RegexMap>>;

export function UAParser(uastring?: string, extensions?: UAParserExt, headers?: Record<string, string>): IResult;
export function UAParser(uastring?: string, headers?: Record<string, string>): IResult;
Expand Down

0 comments on commit 3622b61

Please sign in to comment.