@strapi/typescript-utils
Version:
Typescript support for Strapi
16 lines (12 loc) • 312 B
JavaScript
;
const ts = require('typescript');
const { identity } = require('lodash/fp');
/**
* @type {ts.FormatDiagnosticsHost}
*/
const formatHost = {
getCanonicalFileName: identity,
getCurrentDirectory: ts.sys.getCurrentDirectory,
getNewLine: () => ts.sys.newLine,
};
module.exports = formatHost;