@chubbyts/chubbyts-negotiation
Version:
A simple negotiation library.
10 lines (9 loc) • 322 B
TypeScript
export type NegotiatedValue = {
value: string;
attributes: Record<string, string>;
};
export type Negotiator = {
negotiate: (header: string) => NegotiatedValue | undefined;
supportedValues: Array<string>;
};
export declare const resolveHeaderToMap: (header: string) => Map<string, Record<string, string>>;