UNPKG

@mikezimm/fps-core-v7

Version:

Library of reusable core interfaces, types and constants migrated from fps-library-v2

29 lines 1 kB
/** * copyHeadersToReturns: * * 2024-12-09: Created this function in order to copy headers object to the return results. * Typescript was not liking just assigning it so ChatGPT suggested this as the most robust way to handle it. * * @param headers * @returns */ export declare function copyHeadersToReturns(headers: HeadersInit): Record<string, string>; /** * Returns an array of strings for any matching endpoints. * In reality you should either get 1 or 0, not an array. * * @param fetchAPI * @returns */ export declare function getOdata3Targets(fetchAPI: string): string[]; /** * createMinHeaders * * 2024-12-09: Created this function in order to create HeadersInit with proper typings * * @param digestValue * @param headerContentType * @returns */ export declare function createMinHeaders(fetchAPI: string, digestValue: string, headerContentType: string, verbose?: boolean): HeadersInit; //# sourceMappingURL=headerInitUtilities.d.ts.map