1
1
/**
2
2
* Browser target options
3
3
*/
4
- export interface Schema {
4
+ export type Schema = {
5
5
/**
6
6
* A list of CommonJS or AMD packages that are allowed to be used without a build time
7
7
* warning. Use `'*'` to allow all.
@@ -178,9 +178,9 @@ export interface Schema {
178
178
* TypeScript configuration for Web Worker modules.
179
179
*/
180
180
webWorkerTsConfig ?: string ;
181
- }
181
+ } ;
182
182
export type AssetPattern = AssetPatternClass | string ;
183
- export interface AssetPatternClass {
183
+ export type AssetPatternClass = {
184
184
/**
185
185
* Allow glob patterns to follow symlink directories. This allows subdirectories of the
186
186
* symlink to be searched.
@@ -202,8 +202,8 @@ export interface AssetPatternClass {
202
202
* Absolute path within the output.
203
203
*/
204
204
output ?: string ;
205
- }
206
- export interface Budget {
205
+ } ;
206
+ export type Budget = {
207
207
/**
208
208
* The baseline size for comparison.
209
209
*/
@@ -240,7 +240,7 @@ export interface Budget {
240
240
* The threshold for warning relative to the baseline (min & max).
241
241
*/
242
242
warning ?: string ;
243
- }
243
+ } ;
244
244
/**
245
245
* The type of budget.
246
246
*/
@@ -261,10 +261,10 @@ export declare enum CrossOrigin {
261
261
None = "none" ,
262
262
UseCredentials = "use-credentials"
263
263
}
264
- export interface FileReplacement {
264
+ export type FileReplacement = {
265
265
replace : string ;
266
266
with : string ;
267
- }
267
+ } ;
268
268
/**
269
269
* How to handle duplicate translations for i18n.
270
270
*
@@ -279,7 +279,7 @@ export declare enum I18NTranslation {
279
279
* Configures the generation of the application's HTML index.
280
280
*/
281
281
export type IndexUnion = boolean | IndexObject | string ;
282
- export interface IndexObject {
282
+ export type IndexObject = {
283
283
/**
284
284
* The path of a file to use for the application's generated HTML index.
285
285
*/
@@ -290,7 +290,7 @@ export interface IndexObject {
290
290
*/
291
291
output ?: string ;
292
292
[ property : string ] : any ;
293
- }
293
+ } ;
294
294
/**
295
295
* The stylesheet language to use for the application's inline component styles.
296
296
*/
@@ -311,7 +311,7 @@ export type Localize = string[] | boolean;
311
311
* https://angular.dev/reference/configs/workspace-config#optimization-configuration.
312
312
*/
313
313
export type OptimizationUnion = boolean | OptimizationClass ;
314
- export interface OptimizationClass {
314
+ export type OptimizationClass = {
315
315
/**
316
316
* Enables optimization for fonts. This option requires internet access. `HTTPS_PROXY`
317
317
* environment variable can be used to specify a proxy server.
@@ -325,25 +325,25 @@ export interface OptimizationClass {
325
325
* Enables optimization of the styles output.
326
326
*/
327
327
styles ?: StylesUnion ;
328
- }
328
+ } ;
329
329
/**
330
330
* Enables optimization for fonts. This option requires internet access. `HTTPS_PROXY`
331
331
* environment variable can be used to specify a proxy server.
332
332
*/
333
333
export type FontsUnion = boolean | FontsClass ;
334
- export interface FontsClass {
334
+ export type FontsClass = {
335
335
/**
336
336
* Reduce render blocking requests by inlining external Google Fonts and Adobe Fonts CSS
337
337
* definitions in the application's HTML index file. This option requires internet access.
338
338
* `HTTPS_PROXY` environment variable can be used to specify a proxy server.
339
339
*/
340
340
inline ?: boolean ;
341
- }
341
+ } ;
342
342
/**
343
343
* Enables optimization of the styles output.
344
344
*/
345
345
export type StylesUnion = boolean | StylesClass ;
346
- export interface StylesClass {
346
+ export type StylesClass = {
347
347
/**
348
348
* Extract and inline critical CSS definitions to improve first paint time.
349
349
*/
@@ -353,7 +353,7 @@ export interface StylesClass {
353
353
* identifiers and minimizing values.
354
354
*/
355
355
minify ?: boolean ;
356
- }
356
+ } ;
357
357
/**
358
358
* Define the output filename cache-busting hashing mode.
359
359
*/
@@ -368,7 +368,7 @@ export declare enum OutputHashing {
368
368
*/
369
369
export type Polyfills = string [ ] | string ;
370
370
export type ScriptElement = ScriptClass | string ;
371
- export interface ScriptClass {
371
+ export type ScriptClass = {
372
372
/**
373
373
* The bundle name for this extra entry point.
374
374
*/
@@ -381,13 +381,13 @@ export interface ScriptClass {
381
381
* The file to include.
382
382
*/
383
383
input : string ;
384
- }
384
+ } ;
385
385
/**
386
386
* Output source maps for scripts and styles. For more information, see
387
387
* https://angular.dev/reference/configs/workspace-config#source-map-configuration.
388
388
*/
389
389
export type SourceMapUnion = boolean | SourceMapClass ;
390
- export interface SourceMapClass {
390
+ export type SourceMapClass = {
391
391
/**
392
392
* Output source maps used for error reporting tools.
393
393
*/
@@ -404,18 +404,18 @@ export interface SourceMapClass {
404
404
* Resolve vendor packages source maps.
405
405
*/
406
406
vendor ?: boolean ;
407
- }
407
+ } ;
408
408
/**
409
409
* Options to pass to style preprocessors.
410
410
*/
411
- export interface StylePreprocessorOptions {
411
+ export type StylePreprocessorOptions = {
412
412
/**
413
413
* Paths to include. Paths will be resolved to workspace root.
414
414
*/
415
415
includePaths ?: string [ ] ;
416
- }
416
+ } ;
417
417
export type StyleElement = StyleClass | string ;
418
- export interface StyleClass {
418
+ export type StyleClass = {
419
419
/**
420
420
* The bundle name for this extra entry point.
421
421
*/
@@ -428,4 +428,4 @@ export interface StyleClass {
428
428
* The file to include.
429
429
*/
430
430
input : string ;
431
- }
431
+ } ;
0 commit comments