diff --git a/src/index.js b/src/index.js index 804d556..89ff725 100644 --- a/src/index.js +++ b/src/index.js @@ -38,7 +38,7 @@ module.exports = format; * @param {String} options.logLevel - the level for the logs * (error, warn, info, debug, trace) * @param {Boolean} options.prettierLast - Run Prettier Last - * @return {String} - the formatted string + * @return {Promise} - the formatted string */ async function format(options) { const { logLevel = getDefaultLogLevel() } = options; diff --git a/types/index.d.ts b/types/index.d.ts index 7cf8b65..0dd1ed6 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -90,6 +90,6 @@ declare namespace format { * supplied configuration. The auto-formatting is limited to the issues that * Prettier and ESLint can automatically fix. */ -declare function format(options: format.Options): string; +declare function format(options: format.Options): Promise; export = format;