Skip to content

Commit

Permalink
fix: type erros - Cannot find name 'OffscreenCanvas'
Browse files Browse the repository at this point in the history
  • Loading branch information
boeckMt committed May 10, 2022
1 parent 83549df commit 33be2fe
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 12 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### Bug Fixes
* **@dlr-eoc/utils-maps:**
- Type Errors due to `@types/offscreencanvas`. All modules which use `@dlr-eoc/utils-maps` (which makse use of OffscreenCanvas) have to include `offscreencanvas` in there tsconfig types array. We cannot set this once at the main tsconfig because the types array in tsconfig.spec already [overrides](https://www.typescriptlang.org/tsconfig#extends) the main config.

# [8.1.0](https://github.com/dlr-eoc/ukis-frontend-libraries/tree/v8.1.0) (2022-04-04) (Type for CustomLayer and bug fixes)

### Features
Expand Down
2 changes: 1 addition & 1 deletion projects/demo-auth/tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "../../out-tsc/app",
"types": []
"types": ["offscreencanvas"]
},
"files": [
"src/main.ts",
Expand Down
2 changes: 1 addition & 1 deletion projects/demo-maps/tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"compilerOptions": {
"outDir": "../../out-tsc/app",
"types": [
"node"
"node", "offscreencanvas"
]
},
"files": [
Expand Down
2 changes: 1 addition & 1 deletion projects/map-ol/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"compilerOptions": {
"outDir": "../../out-tsc/spec",
"types": [
"jasmine"
"jasmine", "offscreencanvas"
]
},
"files": [
Expand Down
2 changes: 1 addition & 1 deletion projects/map-three/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"compilerOptions": {
"outDir": "../../out-tsc/spec",
"types": [
"jasmine"
"jasmine", "offscreencanvas"
]
},
"files": [
Expand Down
2 changes: 1 addition & 1 deletion projects/map-tools/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"compilerOptions": {
"outDir": "../../out-tsc/spec",
"types": [
"jasmine"
"jasmine", "offscreencanvas"
]
},
"files": [
Expand Down
5 changes: 3 additions & 2 deletions projects/utils-maps/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"devDependencies": {
"@angular/platform-browser-dynamic": "0.0.0-PLACEHOLDER-VENDOR",
"@angular/core": "0.0.0-PLACEHOLDER-VENDOR",
"zone.js": "0.0.0-PLACEHOLDER-VENDOR"
"zone.js": "0.0.0-PLACEHOLDER-VENDOR",
"@types/offscreencanvas": "0.0.0-PLACEHOLDER-VENDOR"
}
}
}
8 changes: 4 additions & 4 deletions projects/utils-maps/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
"declaration": true,
"declarationMap": true,
"inlineSources": true,
"types": [],
"lib": [
"dom",
"es2018"
]
"es2018",
"dom"
],
"types": ["offscreencanvas"]
},
"angularCompilerOptions": {
"skipTemplateCodegen": true,
Expand Down
2 changes: 1 addition & 1 deletion projects/utils-maps/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"compilerOptions": {
"outDir": "../../out-tsc/spec",
"types": [
"jasmine"
"jasmine", "offscreencanvas"
]
},
"files": [
Expand Down

0 comments on commit 33be2fe

Please sign in to comment.