Commit 6c6248e
committed
refactor(@angular/build): add explicit type annotations to avoid inferred types
This refactor resolves an issue where the inferred type of `renderSassStylesheet` required an external reference, which could affect portability.
Fixes the following error:
```
packages/angular/build/src/tools/sass/worker.ts:59:31 - error TS2742: The inferred type of 'renderSassStylesheet' cannot be named without a reference to '../../../../../../external/npm/node_modules/source-map-js/source-map'. This is likely not portable. A type annotation is necessary.
```
Explicit type annotation added to `renderSassStylesheet` function to prevent reliance on inferred types.
**Note:** Ensure compatibility with Windows Bazel builds.1 parent 26c6d2d commit 6c6248e
1 file changed
+24
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
60 | 82 | | |
61 | 83 | | |
62 | 84 | | |
| |||
164 | 186 | | |
165 | 187 | | |
166 | 188 | | |
| 189 | + | |
167 | 190 | | |
168 | 191 | | |
169 | 192 | | |
| |||
0 commit comments