UNPKG

@twilio-labs/serverless-api

Version:
11 lines (10 loc) 415 B
/** @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>;