Skip to content

Commit

Permalink
Allow nested array values for expand() in type definition (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonkoops authored Dec 13, 2023
1 parent 8d96f94 commit fcecd7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/url-template.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export type PrimitiveValue = string | number | boolean | null;

export interface Template {
expand(context: Record<string, PrimitiveValue | PrimitiveValue[] | Record<string, PrimitiveValue>>): string;
expand(context: Record<string, PrimitiveValue | PrimitiveValue[] | Record<string, PrimitiveValue | PrimitiveValue[]>>): string;
}

export function parseTemplate(template: string): Template;

0 comments on commit fcecd7b

Please sign in to comment.