UNPKG

@cumulus/message

Version:

Utilities for building and parsing Cumulus messages

17 lines 653 B
import { ApiFile } from '@cumulus/types/api/files'; /** * Check if the file has the extension * * @param {ApiFile} granuleFile - Granule file * @param {string} extension - File extension to check * @returns {boolean} whether the file has the extension */ export declare const isFileExtensionMatched: (granuleFile: ApiFile, extension: string) => boolean; /** * Ensures that the exception is returned as an object * * @param {Object|undefined} exception - the exception * @returns {string} an stringified exception */ export declare const parseException: (exception: Object | undefined) => object; //# sourceMappingURL=utils.d.ts.map