forked from angular/angular
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathutil.d.ts
More file actions
22 lines (22 loc) · 996 Bytes
/
util.d.ts
File metadata and controls
22 lines (22 loc) · 996 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
export declare var 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 sanitizeIdentifier(name: 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;
}