util.d.ts
1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/**
* @license
* Copyright Google Inc. 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.io/license
*/
import { BaseError } from './facade/errors';
export declare const MODULE_SUFFIX: string;
export declare function camelCaseToDashCase(input: string): string;
export declare function dashCaseToCamelCase(input: string): string;
export declare function splitAtColon(input: string, defaultValues: string[]): string[];
export declare function splitAtPeriod(input: string, defaultValues: string[]): string[];
export declare function visitValue(value: any, visitor: ValueVisitor, context: any): any;
export interface ValueVisitor {
visitArray(arr: any[], context: any): any;
visitStringMap(map: {
[key: string]: any;
}, context: any): any;
visitPrimitive(value: any, context: any): any;
visitOther(value: any, context: any): any;
}
export declare class ValueTransformer implements ValueVisitor {
visitArray(arr: any[], context: any): any;
visitStringMap(map: {
[key: string]: any;
}, context: any): any;
visitPrimitive(value: any, context: any): any;
visitOther(value: any, context: any): any;
}
export declare class SyncAsyncResult<T> {
syncResult: T;
asyncResult: Promise<T>;
constructor(syncResult: T, asyncResult?: Promise<T>);
}
export declare class SyntaxError extends BaseError {
}