/
githubmirror
/
yarn
Обзор
Документация
Войти
/
githubmirror
/
yarn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/reporters/format.js
49 строк
1 KB
Simon Vocella
add prettier and prettying everything (#3401)
16 май 2017, 21:12
16 май 2017, 21:12
25890c8
Код
Авторство
О чём код?
/* @flow */ function formatFunction(...strs: Array<string>): string { return strs.join(' '); } export const defaultFormatter = { bold: formatFunction, dim: formatFunction, italic: formatFunction, underline: formatFunction, inverse: formatFunction, strikethrough: formatFunction, black: formatFunction, red: formatFunction, green: formatFunction, yellow: formatFunction, blue: formatFunction, magenta: formatFunction, cyan: formatFunction, white: formatFunction, gray: formatFunction, grey: formatFunction, stripColor: formatFunction, }; type FormatFunction = (...strs: Array<string>) => string; export type FormatKeys = $Keys<typeof defaultFormatter>; export type Formatter = { bold: FormatFunction, dim: FormatFunction, italic: FormatFunction, underline: FormatFunction, inverse: FormatFunction, strikethrough: FormatFunction, black: FormatFunction, red: FormatFunction, green: FormatFunction, yellow: FormatFunction, blue: FormatFunction, magenta: FormatFunction, cyan: FormatFunction, white: FormatFunction, gray: FormatFunction, grey: FormatFunction, stripColor: FormatFunction, };