@ngtools/webpack 13.1.0 → 13.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ngtools/webpack",
3
- "version": "13.1.0",
3
+ "version": "13.1.1",
4
4
  "description": "Webpack plugin that AoT compiles your Angular components and modules.",
5
5
  "main": "./src/index.js",
6
6
  "typings": "src/index.d.ts",
@@ -5,9 +5,9 @@
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://angular.io/license
7
7
  */
8
- import type { Diagnostics } from '@angular/compiler-cli';
8
+ import { Diagnostic } from 'typescript';
9
9
  import type { Compilation } from 'webpack';
10
- export declare type DiagnosticsReporter = (diagnostics: Diagnostics) => void;
11
- export declare function createDiagnosticsReporter(compilation: Compilation, formatter: (diagnostic: Diagnostics[number]) => string): DiagnosticsReporter;
10
+ export declare type DiagnosticsReporter = (diagnostics: readonly Diagnostic[]) => void;
11
+ export declare function createDiagnosticsReporter(compilation: Compilation, formatter: (diagnostic: Diagnostic) => string): DiagnosticsReporter;
12
12
  export declare function addWarning(compilation: Compilation, message: string): void;
13
13
  export declare function addError(compilation: Compilation, message: string): void;