26 lines
883 B
TypeScript
26 lines
883 B
TypeScript
|
/**
|
||
|
* @license
|
||
|
* Copyright Google LLC 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 * as tags from './literals';
|
||
|
import * as strings from './strings';
|
||
|
export * from './array';
|
||
|
export * from './object';
|
||
|
export * from './template';
|
||
|
export * from './partially-ordered-set';
|
||
|
export * from './priority-queue';
|
||
|
export * from './lang';
|
||
|
export { tags, strings };
|
||
|
export declare type DeepReadonly<T> = T extends (infer R)[] ? DeepReadonlyArray<R> : T extends Function ? T : T extends object ? DeepReadonlyObject<T> : T;
|
||
|
export interface DeepReadonlyArray<T> extends Array<DeepReadonly<T>> {
|
||
|
}
|
||
|
export declare type DeepReadonlyObject<T> = {
|
||
|
readonly [P in keyof T]: DeepReadonly<T[P]>;
|
||
|
};
|
||
|
export declare type Readwrite<T> = {
|
||
|
-readonly [P in keyof T]: T[P];
|
||
|
};
|