@planet-a/affinity-node
Version:
API wrapper for the affinity.co API
16 lines (15 loc) • 556 B
TypeScript
/**
* Returns if a specific http code is in a given code range
* where the code range is defined as a combination of digits
* and "X" (the letter X) with a length of 3
*
* @param codeRange string with length 3 consisting of digits and "X" (the letter X)
* @param code the http status code to be checked against the code range
*/
export declare function isCodeInRange(codeRange: string, code: number): boolean;
/**
* Returns if it can consume form
*
* @param consumes array
*/
export declare function canConsumeForm(contentTypes: string[]): boolean;