synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
14 lines • 705 B
TypeScript
export declare const PLAIN_TEXT = "text/plain";
export declare const TEXT_COMMA_SEPARATED_VALUES = "text/csv";
export declare const TEXT_TAB_SEPARATED_VALUES = "text/tab-separated-values";
export declare const APPLICATION_OCTET_STREAM = "application/octet-stream";
export declare function isRecognizedCodeFileName(fileName: string): boolean;
/**
* Given an initial Content Type and a file name, returns an appropriate Content
* Type if the initial value is null or empty. Otherwise, the original Content
* Type is returned.
* @param type
* @param fileName
*/
export declare function fixDefaultContentType(type: string | null, fileName: string): string;
//# sourceMappingURL=ContentTypeUtils.d.ts.map