Skip to content

Commit a8f19a1

Browse files
filipesilvamgechev
authored andcommitted
build: use TypeScript 3.7
1 parent 359deb3 commit a8f19a1

File tree

14 files changed

+69
-65
lines changed

14 files changed

+69
-65
lines changed

etc/api/angular_devkit/core/node/_golden-api.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export declare class ModuleNotFoundException extends BaseException {
1212
}
1313

1414
export declare class NodeJsAsyncHost implements virtualFs.Host<fs.Stats> {
15-
readonly capabilities: virtualFs.HostCapabilities;
15+
get capabilities(): virtualFs.HostCapabilities;
1616
delete(path: Path): Observable<void>;
1717
exists(path: Path): Observable<boolean>;
1818
isDirectory(path: Path): Observable<boolean>;
@@ -26,7 +26,7 @@ export declare class NodeJsAsyncHost implements virtualFs.Host<fs.Stats> {
2626
}
2727

2828
export declare class NodeJsSyncHost implements virtualFs.Host<fs.Stats> {
29-
readonly capabilities: virtualFs.HostCapabilities;
29+
get capabilities(): virtualFs.HostCapabilities;
3030
delete(path: Path): Observable<void>;
3131
exists(path: Path): Observable<boolean>;
3232
isDirectory(path: Path): Observable<boolean>;
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
export declare class TempScopedNodeJsSyncHost extends virtualFs.ScopedHost<fs.Stats> {
22
protected _root: Path;
33
protected _sync: virtualFs.SyncDelegateHost<fs.Stats>;
4-
readonly files: Path[];
5-
readonly root: Path;
6-
readonly sync: virtualFs.SyncDelegateHost<fs.Stats>;
4+
get files(): Path[];
5+
get root(): Path;
6+
get sync(): virtualFs.SyncDelegateHost<fs.Stats>;
77
constructor();
88
}

etc/api/angular_devkit/core/src/_golden-api.d.ts

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export declare function addUndefinedDefaults(value: JsonValue, _pointer: JsonPoi
99

1010
export declare class AliasHost<StatsT extends object = {}> extends ResolverHost<StatsT> {
1111
protected _aliases: Map<Path, Path>;
12-
readonly aliases: Map<Path, Path>;
12+
get aliases(): Map<Path, Path>;
1313
protected _resolve(path: Path): Path;
1414
}
1515

@@ -162,8 +162,8 @@ export declare class CordHost extends SimpleMemoryHost {
162162
protected _filesToOverwrite: Set<Path>;
163163
protected _filesToRename: Map<Path, Path>;
164164
protected _filesToRenameRevert: Map<Path, Path>;
165-
readonly backend: ReadonlyHost;
166-
readonly capabilities: HostCapabilities;
165+
get backend(): ReadonlyHost;
166+
get capabilities(): HostCapabilities;
167167
constructor(_back: ReadonlyHost);
168168
clone(): CordHost;
169169
commit(host: Host, force?: boolean): Observable<void>;
@@ -538,7 +538,8 @@ export interface LogEntry extends LoggerMetadata {
538538

539539
export declare class Logger extends Observable<LogEntry> implements LoggerApi {
540540
protected _metadata: LoggerMetadata;
541-
protected _observable: Observable<LogEntry>;
541+
protected get _observable(): Observable<LogEntry>;
542+
protected set _observable(v: Observable<LogEntry>);
542543
protected readonly _subject: Subject<LogEntry>;
543544
readonly name: string;
544545
readonly parent: Logger | null;
@@ -687,8 +688,8 @@ export interface ParseJsonOptions {
687688
export declare function parseJsonPointer(pointer: JsonPointer): string[];
688689

689690
export declare class PartiallyOrderedSet<T> implements Set<T> {
690-
readonly [Symbol.toStringTag]: 'Set';
691-
readonly size: number;
691+
get [Symbol.toStringTag](): 'Set';
692+
get size(): number;
692693
[Symbol.iterator](): Generator<T, void, unknown>;
693694
protected _checkCircularDependencies(item: T, deps: Set<T>): void;
694695
add(item: T, deps?: (Set<T> | T[])): this;
@@ -750,7 +751,7 @@ export declare type PosixPath = string & {
750751
};
751752

752753
export declare class PriorityQueue<T> {
753-
readonly size: number;
754+
get size(): number;
754755
constructor(_comparator: (x: T, y: T) => number);
755756
clear(): void;
756757
peek(): T | undefined;
@@ -855,7 +856,7 @@ export declare function resolve(p1: Path, p2: Path): Path;
855856

856857
export declare abstract class ResolverHost<T extends object> implements Host<T> {
857858
protected _delegate: Host<T>;
858-
readonly capabilities: HostCapabilities;
859+
get capabilities(): HostCapabilities;
859860
constructor(_delegate: Host<T>);
860861
protected abstract _resolve(path: Path): Path;
861862
delete(path: Path): Observable<void>;
@@ -871,7 +872,7 @@ export declare abstract class ResolverHost<T extends object> implements Host<T>
871872
}
872873

873874
export declare class SafeReadonlyHost<StatsT extends object = {}> implements ReadonlyHost<StatsT> {
874-
readonly capabilities: HostCapabilities;
875+
get capabilities(): HostCapabilities;
875876
constructor(_delegate: ReadonlyHost<StatsT>);
876877
exists(path: Path): Observable<boolean>;
877878
isDirectory(path: Path): Observable<boolean>;
@@ -950,7 +951,7 @@ export interface ScreenviewOptions extends CustomDimensionsAndMetricsOptions {
950951

951952
export declare class SimpleMemoryHost implements Host<{}> {
952953
protected _cache: Map<Path, Stats<SimpleMemoryHostStats>>;
953-
readonly capabilities: HostCapabilities;
954+
get capabilities(): HostCapabilities;
954955
constructor();
955956
protected _delete(path: Path): void;
956957
protected _exists(path: Path): boolean;
@@ -1029,8 +1030,8 @@ export declare function stripIndents(strings: TemplateStringsArray, ...values: a
10291030

10301031
export declare class SyncDelegateHost<T extends object = {}> {
10311032
protected _delegate: Host<T>;
1032-
readonly capabilities: HostCapabilities;
1033-
readonly delegate: Host<T>;
1033+
get capabilities(): HostCapabilities;
1034+
get delegate(): Host<T>;
10341035
constructor(_delegate: Host<T>);
10351036
protected _doSyncCall<ResultT>(observable: Observable<ResultT>): ResultT;
10361037
delete(path: Path): void;
@@ -1131,9 +1132,9 @@ export declare namespace test {
11311132
class TestHost extends SimpleMemoryHost {
11321133
protected _records: TestLogRecord[];
11331134
protected _sync: SyncDelegateHost<{}>;
1134-
readonly files: Path[];
1135-
readonly records: TestLogRecord[];
1136-
readonly sync: SyncDelegateHost<{}>;
1135+
get files(): Path[];
1136+
get records(): TestLogRecord[];
1137+
get sync(): SyncDelegateHost<{}>;
11371138
constructor(map?: {
11381139
[path: string]: string;
11391140
});
@@ -1201,10 +1202,10 @@ export declare type WindowsPath = string & {
12011202
};
12021203

12031204
export declare class Workspace {
1204-
readonly host: virtualFs.Host<{}>;
1205-
readonly newProjectRoot: string | undefined;
1206-
readonly root: Path;
1207-
readonly version: number;
1205+
get host(): virtualFs.Host<{}>;
1206+
get newProjectRoot(): string | undefined;
1207+
get root(): Path;
1208+
get version(): number;
12081209
constructor(_root: Path, _host: virtualFs.Host<{}>, registry?: schema.CoreSchemaRegistry);
12091210
getCli(): WorkspaceTool;
12101211
getDefaultProjectName(): string | null;

etc/api/angular_devkit/schematics/src/_golden-api.d.ts

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export interface ActionBase {
77
}
88

99
export declare class ActionList implements Iterable<Action> {
10-
readonly length: number;
10+
get length(): number;
1111
[Symbol.iterator](): IterableIterator<Action>;
1212
protected _action(action: Partial<Action>): void;
1313
create(path: Path, content: Buffer): void;
@@ -46,12 +46,12 @@ export declare abstract class BaseWorkflow implements Workflow {
4646
protected _lifeCycle: Subject<LifeCycleEvent>;
4747
protected _registry: schema.CoreSchemaRegistry;
4848
protected _reporter: Subject<DryRunEvent>;
49-
readonly context: Readonly<WorkflowExecutionContext>;
50-
readonly engine: Engine<{}, {}>;
51-
readonly engineHost: EngineHost<{}, {}>;
52-
readonly lifeCycle: Observable<LifeCycleEvent>;
53-
readonly registry: schema.SchemaRegistry;
54-
readonly reporter: Observable<DryRunEvent>;
49+
get context(): Readonly<WorkflowExecutionContext>;
50+
get engine(): Engine<{}, {}>;
51+
get engineHost(): EngineHost<{}, {}>;
52+
get lifeCycle(): Observable<LifeCycleEvent>;
53+
get registry(): schema.SchemaRegistry;
54+
get reporter(): Observable<DryRunEvent>;
5555
constructor(options: BaseWorkflowOptions);
5656
protected _createSinks(): Sink[];
5757
execute(options: Partial<WorkflowExecutionContext> & RequiredWorkflowExecutionContext): Observable<void>;
@@ -91,8 +91,8 @@ export declare type CollectionDescription<CollectionMetadataT extends object> =
9191

9292
export declare class CollectionImpl<CollectionT extends object, SchematicT extends object> implements Collection<CollectionT, SchematicT> {
9393
readonly baseDescriptions?: CollectionDescription<CollectionT>[] | undefined;
94-
readonly description: CollectionDescription<CollectionT>;
95-
readonly name: string;
94+
get description(): CollectionDescription<CollectionT>;
95+
get name(): string;
9696
constructor(_description: CollectionDescription<CollectionT>, _engine: SchematicEngine<CollectionT, SchematicT>, baseDescriptions?: CollectionDescription<CollectionT>[] | undefined);
9797
createSchematic(name: string, allowPrivate?: boolean): Schematic<CollectionT, SchematicT>;
9898
listSchematicNames(): string[];
@@ -113,8 +113,8 @@ export interface CreateFileAction extends ActionBase {
113113

114114
export declare class DelegateTree implements Tree {
115115
protected _other: Tree;
116-
readonly actions: Action[];
117-
readonly root: DirEntry;
116+
get actions(): Action[];
117+
get root(): DirEntry;
118118
constructor(_other: Tree);
119119
apply(action: Action, strategy?: MergeStrategy): void;
120120
beginUpdate(path: string): UpdateRecorder;
@@ -265,8 +265,8 @@ export declare class HostDirEntry implements DirEntry {
265265
protected _tree: Tree;
266266
readonly parent: DirEntry | null;
267267
readonly path: Path;
268-
readonly subdirs: PathFragment[];
269-
readonly subfiles: PathFragment[];
268+
get subdirs(): PathFragment[];
269+
get subfiles(): PathFragment[];
270270
constructor(parent: DirEntry | null, path: Path, _host: virtualFs.SyncDelegateHost, _tree: Tree);
271271
dir(name: PathFragment): DirEntry;
272272
file(name: PathFragment): FileEntry | null;
@@ -292,8 +292,8 @@ export declare class HostSink extends SimpleSinkBase {
292292

293293
export declare class HostTree implements Tree {
294294
protected _backend: virtualFs.ReadonlyHost<{}>;
295-
readonly actions: Action[];
296-
readonly root: DirEntry;
295+
get actions(): Action[];
296+
get root(): DirEntry;
297297
constructor(_backend?: virtualFs.ReadonlyHost<{}>);
298298
protected _normalizePath(path: string): Path;
299299
protected _willCreate(path: Path): boolean;
@@ -442,8 +442,8 @@ export declare type SchematicDescription<CollectionMetadataT extends object, Sch
442442

443443
export declare class SchematicEngine<CollectionT extends object, SchematicT extends object> implements Engine<CollectionT, SchematicT> {
444444
protected _workflow?: Workflow | undefined;
445-
readonly defaultMergeStrategy: MergeStrategy;
446-
readonly workflow: Workflow | null;
445+
get defaultMergeStrategy(): MergeStrategy;
446+
get workflow(): Workflow | null;
447447
constructor(_host: EngineHost<CollectionT, SchematicT>, _workflow?: Workflow | undefined);
448448
createCollection(name: string): Collection<CollectionT, SchematicT>;
449449
createContext(schematic: Schematic<CollectionT, SchematicT>, parent?: Partial<TypedSchematicContext<CollectionT, SchematicT>>, executionOptions?: Partial<ExecutionOptions>): TypedSchematicContext<CollectionT, SchematicT>;
@@ -459,8 +459,8 @@ export declare class SchematicEngineConflictingException extends BaseException {
459459
}
460460

461461
export declare class SchematicImpl<CollectionT extends object, SchematicT extends object> implements Schematic<CollectionT, SchematicT> {
462-
readonly collection: Collection<CollectionT, SchematicT>;
463-
readonly description: SchematicDescription<CollectionT, SchematicT>;
462+
get collection(): Collection<CollectionT, SchematicT>;
463+
get description(): SchematicDescription<CollectionT, SchematicT>;
464464
constructor(_description: SchematicDescription<CollectionT, SchematicT>, _factory: RuleFactory<{}>, _collection: Collection<CollectionT, SchematicT>, _engine: Engine<CollectionT, SchematicT>);
465465
call<OptionT extends object>(options: OptionT, host: Observable<Tree>, parentContext?: Partial<TypedSchematicContext<CollectionT, SchematicT>>, executionOptions?: Partial<ExecutionOptions>): Observable<Tree>;
466466
}
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export declare class SchematicTestRunner {
2-
readonly engine: SchematicEngine<{}, {}>;
3-
readonly logger: logging.Logger;
4-
readonly tasks: TaskConfiguration[];
2+
get engine(): SchematicEngine<{}, {}>;
3+
get logger(): logging.Logger;
4+
get tasks(): TaskConfiguration[];
55
constructor(_collectionName: string, collectionPath: string);
66
callRule(rule: Rule, tree: Tree, parentContext?: Partial<SchematicContext>): Observable<Tree>;
77
registerCollection(collectionName: string, collectionPath: string): void;
@@ -12,6 +12,6 @@ export declare class SchematicTestRunner {
1212
}
1313

1414
export declare class UnitTestTree extends DelegateTree {
15-
readonly files: string[];
15+
get files(): string[];
1616
readContent(path: string): string;
1717
}

etc/api/angular_devkit/schematics/tools/index.d.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ export declare class CollectionMissingSchematicsMapException extends BaseExcepti
1313
export declare type ContextTransform = (context: FileSystemSchematicContext) => FileSystemSchematicContext;
1414

1515
export declare class ExportStringRef<T> {
16-
readonly module: string;
17-
readonly path: string;
18-
readonly ref: T | undefined;
16+
get module(): string;
17+
get path(): string;
18+
get ref(): T | undefined;
1919
constructor(ref: string, parentPath?: string, inner?: boolean);
2020
}
2121

@@ -116,7 +116,7 @@ export declare class NodeModulesEngineHost extends FileSystemEngineHostBase {
116116
}
117117

118118
export declare class NodeModulesTestEngineHost extends NodeModulesEngineHost {
119-
readonly tasks: TaskConfiguration<{}>[];
119+
get tasks(): TaskConfiguration<{}>[];
120120
protected _resolveCollectionPath(name: string): string;
121121
clearTasks(): void;
122122
registerCollection(name: string, path: string): void;
@@ -128,8 +128,8 @@ export declare class NodePackageDoesNotSupportSchematics extends BaseException {
128128
}
129129

130130
export declare class NodeWorkflow extends workflow.BaseWorkflow {
131-
readonly engine: FileSystemEngine;
132-
readonly engineHost: NodeModulesEngineHost;
131+
get engine(): FileSystemEngine;
132+
get engineHost(): NodeModulesEngineHost;
133133
constructor(host: virtualFs.Host, options: {
134134
force?: boolean;
135135
dryRun?: boolean;
@@ -158,4 +158,4 @@ export declare class SchematicNameCollisionException extends BaseException {
158158
constructor(name: string);
159159
}
160160

161-
export declare function validateOptionsWithSchema(registry: schema.SchemaRegistry): <T extends {}>(schematic: FileSystemSchematicDescription, options: T, context?: import("@angular-devkit/schematics").TypedSchematicContext<import("@angular-devkit/schematics/tools/tools/description").FileSystemCollectionDescription, FileSystemSchematicDescription> | undefined) => Observable<T>;
161+
export declare function validateOptionsWithSchema(registry: schema.SchemaRegistry): <T extends {}>(schematic: FileSystemSchematicDescription, options: T, context?: FileSystemSchematicContext | undefined) => Observable<T>;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
"quicktype-core": "^6.0.15",
8282
"temp": "^0.9.0",
8383
"tslint": "^5.15.0",
84-
"typescript": "3.6.4"
84+
"typescript": "3.7.4"
8585
},
8686
"devDependencies": {
8787
"@angular/compiler": "9.0.0-rc.4",

packages/angular_devkit/architect/node/node-modules-architect-host.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ export class WorkspaceNodeModulesArchitectHost implements ArchitectHost<NodeModu
136136
root: projectDefinition.root,
137137
sourceRoot: projectDefinition.sourceRoot,
138138
prefix: projectDefinition.prefix,
139-
...clone(projectDefinition.extensions),
139+
...clone(projectDefinition.extensions) as {},
140140
} as unknown) as json.JsonObject;
141141

142142
return metadata;

packages/angular_devkit/build_angular/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
},
103103
"peerDependencies": {
104104
"@angular/compiler-cli": ">=9.0.0-beta < 10",
105-
"typescript": ">=3.6 < 3.7"
105+
"typescript": ">=3.6 < 3.8"
106106
},
107107
"peerDependenciesMeta": {
108108
"@angular/localize": {

packages/angular_devkit/build_optimizer/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"loader-utils": "1.2.3",
1313
"source-map": "0.7.3",
1414
"tslib": "1.10.0",
15-
"typescript": "3.6.4",
15+
"typescript": "3.7.4",
1616
"webpack-sources": "1.4.3"
1717
}
1818
}

packages/ngtools/webpack/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@
2828
},
2929
"peerDependencies": {
3030
"@angular/compiler-cli": ">=9.0.0-beta < 10",
31-
"typescript": ">=3.6 < 3.7",
31+
"typescript": ">=3.6 < 3.8",
3232
"webpack": "^4.0.0"
3333
},
3434
"devDependencies": {
3535
"@angular/compiler": "9.0.0-rc.4",
3636
"@angular/compiler-cli": "9.0.0-rc.4",
37-
"typescript": "3.6.4",
37+
"typescript": "3.7.4",
3838
"webpack": "4.41.2"
3939
}
4040
}

packages/schematics/schematics/schematic/files/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"dependencies": {
1616
"@angular-devkit/core": "^<%= coreVersion %>",
1717
"@angular-devkit/schematics": "^<%= schematicsVersion %>",
18-
"typescript": "~3.6.4"
18+
"typescript": "~3.7.4"
1919
},
2020
"devDependencies": {
2121
"@types/node": "^12.11.1",

tests/angular_devkit/build_ng_packagr/ng-packaged/tsconfig.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,8 @@
1616
"es2017",
1717
"dom"
1818
]
19+
},
20+
"angularCompilerOptions": {
21+
"disableTypeScriptVersionCheck": true
1922
}
2023
}

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10644,10 +10644,10 @@ typedarray@^0.0.6:
1064410644
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
1064510645
integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=
1064610646

10647-
typescript@3.6.4:
10648-
version "3.6.4"
10649-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.6.4.tgz#b18752bb3792bc1a0281335f7f6ebf1bbfc5b91d"
10650-
integrity sha512-unoCll1+l+YK4i4F8f22TaNVPRHcD9PA3yCuZ8g5e0qGqlVlJ/8FSateOLLSagn+Yg5+ZwuPkL8LFUc0Jcvksg==
10647+
typescript@3.7.4:
10648+
version "3.7.4"
10649+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.7.4.tgz#1743a5ec5fef6a1fa9f3e4708e33c81c73876c19"
10650+
integrity sha512-A25xv5XCtarLwXpcDNZzCGvW2D1S3/bACratYBx2sax8PefsFhlYmkQicKHvpYflFS8if4zne5zT5kpJ7pzuvw==
1065110651

1065210652
uglify-js@^3.1.4:
1065310653
version "3.6.8"

0 commit comments

Comments
 (0)