Skip to content

Commit

Permalink
update typing of mediaTypes to match actual implementation (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthieusieben authored Jul 18, 2023
1 parent 802b1de commit 3005683
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,11 @@ export function mediaType(header?: string, preferences?: string[]): string;
* Sorts the media-types in the HTTP request Accept header based on client preference from most to least desired.
*
* @param header - the HTTP Accept header content.
* @param preferences - an optional array of media-type strings in order of server preference.
*
* @return an array of strings of media-types sorted from the most to the least desired.
*/
export function mediaTypes(header?: string): string[];
export function mediaTypes(header?: string, preferences?: string[]): string[];


/**
Expand Down

0 comments on commit 3005683

Please sign in to comment.