@twilio-labs/serverless-api
Version:
API-wrapper for the Twilio Serverless API
11 lines (10 loc) • 415 B
TypeScript
/** @module @twilio-labs/serverless-api/dist/utils */
/// <reference types="node" />
/**
* Tries to determine the content type of a string or buffer
*
* @export
* @param {(string | Buffer)} content the content to check
* @returns {Promise<(string | undefined)>} a valid content type or undefined
*/
export declare function getContentType(content: string | Buffer, name?: string): Promise<string | undefined>;