/
githubmirror
/
components
Обзор
Документация
Войти
/
githubmirror
/
components
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/cdk/schematics/update-tool/utils/diagnostics.ts
17 строк
657 B
Naji
docs: replace angular.io links with angular.dev (#29734)
19 сен 2024, 13:57
Не верифицирован
19 сен 2024, 13:57
5782834
Код
Авторство
О чём код?
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import * as ts from 'typescript'; import {FileSystem} from '../file-system'; import {createFormatDiagnosticHost} from './virtual-host'; /** Formats the specified diagnostics with respect to the given file system. */ export function formatDiagnostics(diagnostics: ts.Diagnostic[], fileSystem: FileSystem): string { const formatHost = createFormatDiagnosticHost(fileSystem); return ts.formatDiagnosticsWithColorAndContext(diagnostics, formatHost); }