@angular-wave/angular.ts 0.0.62 → 0.0.63

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.
@@ -490,6 +490,11 @@ export function shallowCopy(src: any, dst: any): any;
490
490
  */
491
491
  export function assertArg(arg: any, name: any, reason: any): any;
492
492
  export function assertArgFn(arg: any, name: any, acceptArrayAnnotation: any): any;
493
+ /**
494
+ * @param {ErrorHandlingConfig} [config]
495
+ * @returns {ErrorHandlingConfig}
496
+ */
497
+ export function errorHandlingConfig(config?: ErrorHandlingConfig): ErrorHandlingConfig;
493
498
  /**
494
499
  * This object provides a utility for producing rich Error messages within
495
500
  * AngularJS. It can be called as follows:
@@ -543,4 +548,18 @@ export function directiveNormalize(name: any): any;
543
548
  */
544
549
  export function hasAnimate(node: Node): boolean;
545
550
  export const ngAttrPrefixes: string[];
546
- export const minErrConfig: {};
551
+ /**
552
+ * Error configuration object. May only contain the options that need to be updated.
553
+ */
554
+ export type ErrorHandlingConfig = {
555
+ /**
556
+ * - The max depth for stringifying objects. Setting to a
557
+ * non-positive or non-numeric value removes the max depth limit. Default: 5.
558
+ */
559
+ objectMaxDepth?: number | undefined;
560
+ /**
561
+ * - Specifies whether the generated error URL will
562
+ * contain the parameters of the thrown error. Default: true. When used without argument, it returns the current value.
563
+ */
564
+ urlErrorParamsEnabled?: boolean | undefined;
565
+ };
package/types/types.d.ts CHANGED
@@ -429,15 +429,15 @@ export type InjectorService = {
429
429
  /**
430
430
  * - Add and load new modules to the injector.
431
431
  */
432
- loadNewModules: (arg0: Array<Module | string | Injectable<(...args: any[]) => void>>) => void;
432
+ loadNewModules?: (arg0: Array<Module | string | Injectable<(...args: any[]) => void>>) => void;
433
433
  /**
434
434
  * - A map of all the modules loaded into the injector.
435
435
  */
436
- modules: {
436
+ modules?: {
437
437
  [x: string]: Module;
438
438
  };
439
439
  /**
440
440
  * - Indicates if strict dependency injection is enforced.
441
441
  */
442
- strictDi: boolean;
442
+ strictDi?: boolean;
443
443
  };