Mercurial > hg > ugly-duckling
comparison src/app/services/feature-extraction/FeatureExtractionWorker.ts @ 75:8aa6830ea41d
Update the data type for the key in the client Map, for clarity and consistency.
author | Lucas Thompson <dev@lucas.im> |
---|---|
date | Wed, 18 Jan 2017 10:25:15 +0000 |
parents | cb91d7e40068 |
children | 5fb318ac16d5 |
comparison
equal
deleted
inserted
replaced
74:2c3fe51ad1f0 | 75:8aa6830ea41d |
---|---|
31 | 31 |
32 type RequireJs = (libs: string[], callback: (...libs: any[]) => void) => void; | 32 type RequireJs = (libs: string[], callback: (...libs: any[]) => void) => void; |
33 | 33 |
34 export default class FeatureExtractionWorker { | 34 export default class FeatureExtractionWorker { |
35 private workerScope: WorkerGlobalScope; | 35 private workerScope: WorkerGlobalScope; |
36 private clients: Map<string, PiperSimpleClient>; | 36 private clients: Map<LibraryKey, PiperSimpleClient>; |
37 private remoteLibraries: Map<LibraryKey, LibraryUri>; | 37 private remoteLibraries: Map<LibraryKey, LibraryUri>; |
38 | 38 |
39 constructor(workerScope: WorkerGlobalScope, private requireJs: RequireJs) { | 39 constructor(workerScope: WorkerGlobalScope, private requireJs: RequireJs) { |
40 this.workerScope = workerScope; | 40 this.workerScope = workerScope; |
41 this.clients = new Map<LibraryKey, PiperSimpleClient>(); | 41 this.clients = new Map<LibraryKey, PiperSimpleClient>(); |