refactor: ensure zone.js can be built with typescript strict flag (#30993)
As part of FW-1265, the `zone.js` package is made compatible with the TypeScript `--strict` flag. Read more about the strict flag [here](https://www.typescriptlang.org/docs/handbook/compiler-options.html) PR Close #30993
This commit is contained in:

committed by
Miško Hevery

parent
10a1e1974b
commit
60f58bf051
@ -78,7 +78,9 @@ function renderLongStackTrace(frames: LongStackTrace[], stack?: string): string
|
||||
return longTrace.join(NEWLINE);
|
||||
}
|
||||
|
||||
(Zone as any)['longStackTraceZoneSpec'] = <ZoneSpec>{
|
||||
type LongStackTraceZoneSpec = ZoneSpec & {longStackTraceLimit: number};
|
||||
|
||||
(Zone as any)['longStackTraceZoneSpec'] = <LongStackTraceZoneSpec>{
|
||||
name: 'long-stack-trace',
|
||||
longStackTraceLimit: 10, // Max number of task to keep the stack trace for.
|
||||
// add a getLongStackTrace method in spec to
|
||||
|
Reference in New Issue
Block a user