source: trip-planner-front/node_modules/@angular/compiler/src/util.d.ts@ 6a3a178

Last change on this file since 6a3a178 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 2.8 KB
RevLine 
[6a3a178]1/**
2 * @license
3 * Copyright Google LLC All Rights Reserved.
4 *
5 * Use of this source code is governed by an MIT-style license that can be
6 * found in the LICENSE file at https://angular.io/license
7 */
8export declare function dashCaseToCamelCase(input: string): string;
9export declare function splitAtColon(input: string, defaultValues: string[]): string[];
10export declare function splitAtPeriod(input: string, defaultValues: string[]): string[];
11export declare function visitValue(value: any, visitor: ValueVisitor, context: any): any;
12export declare function isDefined(val: any): boolean;
13export declare function noUndefined<T>(val: T | undefined): T;
14export interface ValueVisitor {
15 visitArray(arr: any[], context: any): any;
16 visitStringMap(map: {
17 [key: string]: any;
18 }, context: any): any;
19 visitPrimitive(value: any, context: any): any;
20 visitOther(value: any, context: any): any;
21}
22export declare class ValueTransformer implements ValueVisitor {
23 visitArray(arr: any[], context: any): any;
24 visitStringMap(map: {
25 [key: string]: any;
26 }, context: any): any;
27 visitPrimitive(value: any, context: any): any;
28 visitOther(value: any, context: any): any;
29}
30export declare type SyncAsync<T> = T | Promise<T>;
31export declare const SyncAsync: {
32 assertSync: <T>(value: SyncAsync<T>) => T;
33 then: <T_1, R>(value: SyncAsync<T_1>, cb: (value: T_1) => SyncAsync<R>) => SyncAsync<R>;
34 all: <T_2>(syncAsyncValues: SyncAsync<T_2>[]) => SyncAsync<T_2[]>;
35};
36export declare function error(msg: string): never;
37export declare function escapeRegExp(s: string): string;
38export declare type Byte = number;
39export declare function utf8Encode(str: string): Byte[];
40export declare function stringify(token: any): string;
41/**
42 * Lazily retrieves the reference value from a forwardRef.
43 */
44export declare function resolveForwardRef(type: any): any;
45/**
46 * Determine if the argument is shaped like a Promise
47 */
48export declare function isPromise<T = any>(obj: any): obj is Promise<T>;
49export declare class Version {
50 full: string;
51 readonly major: string;
52 readonly minor: string;
53 readonly patch: string;
54 constructor(full: string);
55}
56export interface Console {
57 log(message: string): void;
58 warn(message: string): void;
59}
60declare const _global: {
61 [name: string]: any;
62};
63export { _global as global };
64export declare function newArray<T = any>(size: number): T[];
65export declare function newArray<T>(size: number, value: T): T[];
66/**
67 * Partitions a given array into 2 arrays, based on a boolean value returned by the condition
68 * function.
69 *
70 * @param arr Input array that should be partitioned
71 * @param conditionFn Condition function that is called for each item in a given array and returns a
72 * boolean value.
73 */
74export declare function partitionArray<T, F = T>(arr: (T | F)[], conditionFn: (value: T | F) => boolean): [T[], F[]];
Note: See TracBrowser for help on using the repository browser.