DefinitelyTyped/types/parse-prefer-header/index.d.ts
Marcell Toth cd414cbf2f
parse-prefer-header: More specific typings (#42642)
* parse-prefer-header: Allow null or undefined input

* parse-prefer-header: More explicit return value typing

* parse-prefer-header: amend contributor list

* parse-prefer-header: Support ReadonlyArray argument

* parse-prefer-header: Add separate tests for Array and ReadonlyArray
2020-02-26 11:33:49 -08:00

9 lines
461 B
TypeScript

// Type definitions for parse-prefer-header 1.0
// Project: https://github.com/ppaskaris/node-parse-prefer-header
// Definitions by: Vincenzo Chianese <https://github.com/XVincentX>, Marcell Toth <https://github.com/marcelltoth>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare function parsePreferHeader(preferHeader: string | ReadonlyArray<string> | null | undefined): { [key: string]: string | true };
export = parsePreferHeader;