|
3 | 3 | ```js
|
4 | 4 | {
|
5 | 5 | "compilerOptions": {
|
6 |
| - "allowSyntheticDefaultImports": false, |
7 |
| - "esModuleInterop": false, |
| 6 | + "allowSyntheticDefaultImports": true, |
| 7 | + "esModuleInterop": , |
8 | 8 | "moduleResolution": "Node"
|
9 | 9 | }
|
10 | 10 | }
|
@@ -75,6 +75,8 @@ m.default(1)
|
75 | 75 |
|
76 | 76 | ```
|
77 | 77 |
|
| 78 | +### [color-map](../../README.md#color-map) |
| 79 | + |
78 | 80 | ### [es-cjs](../../README.md#es-cjs)
|
79 | 81 |
|
80 | 82 | [es-cjs.default-as.all.ts](./ts/es-cjs.default-as.all.ts):
|
@@ -187,95 +189,104 @@ Import Syntax:
|
187 | 189 | | | | π runtime | π’ | π’ | π΄ type-not-fn |
|
188 | 190 | | | cjs | π» compile | π’ | π’ | π’ |
|
189 | 191 | | | | π runtime | π’ | π’ | π’ |
|
| 192 | +| | color-map | π» compile | β | β | β | |
| 193 | +| | | π runtime | β | β | β | |
190 | 194 | | | es-cjs | π» compile | π’ | π’ | π’ |
|
191 | 195 | | | | π runtime | π’ | π’ | π’ |
|
192 | 196 | | | esm | π» compile | β | β | β |
|
193 | 197 | | | | π runtime | β | β | β |
|
194 | 198 | | | esm-cjs | π» compile | π’ | π’ | π’ |
|
195 | 199 | | | | π runtime | π’ | π’ | π’ |
|
196 |
| -| | param-case | π» compile | π΄ TS1259-e-1 | π’ | π΄ TS2497-e | |
| 200 | +| | param-case | π» compile | π’ | π’ | π΄ TS2497-e | |
197 | 201 | | | | π runtime | π΄ type-not-fn-1 | π΄ type-not-fn-1 | π΄ type-not-fn-2 |
|
198 | 202 | | es2015 | assertron | π» compile | π’ | π’ | π΄ TS2339 |
|
199 | 203 | | | | π runtime | π΄ type-not-fn | π΄ type-not-fn | π΄ type-not-fn |
|
200 | 204 | | | cjs | π» compile | π’ | π’ | π’ |
|
201 | 205 | | | | π runtime | π΄ type-not-fn-3 | π΄ type-not-fn-3 | π΄ type-not-fn-4 |
|
| 206 | +| | color-map | π» compile | β | β | β | |
| 207 | +| | | π runtime | β | β | β | |
202 | 208 | | | es-cjs | π» compile | π’ | π’ | π’ |
|
203 | 209 | | | | π runtime | π΄ type-not-fn-3 | π΄ type-not-fn-3 | π΄ type-not-fn-4 |
|
204 | 210 | | | esm | π» compile | β | β | β |
|
205 | 211 | | | | π runtime | β | β | β |
|
206 | 212 | | | esm-cjs | π» compile | π’ | π’ | π’ |
|
207 | 213 | | | | π runtime | π’ | π’ | π’ |
|
208 |
| -| | param-case | π» compile | π΄ TS1259-a-1 | π’ | π΄ TS2497-a | |
| 214 | +| | param-case | π» compile | π’ | π’ | π΄ TS2497-a | |
209 | 215 | | | | π runtime | π’ | π’ | π’ |
|
210 | 216 | | es2020 | assertron | π» compile | π’ | π’ | π΄ TS2339 |
|
211 | 217 | | | | π runtime | π΄ type-not-fn | π΄ type-not-fn | π΄ type-not-fn |
|
212 | 218 | | | cjs | π» compile | π’ | π’ | π’ |
|
213 | 219 | | | | π runtime | π΄ type-not-fn-3 | π΄ type-not-fn-3 | π΄ type-not-fn-4 |
|
| 220 | +| | color-map | π» compile | β | β | β | |
| 221 | +| | | π runtime | β | β | β | |
214 | 222 | | | es-cjs | π» compile | π’ | π’ | π’ |
|
215 | 223 | | | | π runtime | π΄ type-not-fn-3 | π΄ type-not-fn-3 | π΄ type-not-fn-4 |
|
216 | 224 | | | esm | π» compile | β | β | β |
|
217 | 225 | | | | π runtime | β | β | β |
|
218 | 226 | | | esm-cjs | π» compile | π’ | π’ | π’ |
|
219 | 227 | | | | π runtime | π’ | π’ | π’ |
|
220 |
| -| | param-case | π» compile | π΄ TS1259-a-1 | π’ | π΄ TS2497-a | |
| 228 | +| | param-case | π» compile | π’ | π’ | π΄ TS2497-a | |
221 | 229 | | | | π runtime | π’ | π’ | π’ |
|
222 | 230 | | es2022 | assertron | π» compile | π’ | π’ | π΄ TS2339 |
|
223 | 231 | | | | π runtime | π΄ type-not-fn | π΄ type-not-fn | π΄ type-not-fn |
|
224 | 232 | | | cjs | π» compile | π’ | π’ | π’ |
|
225 | 233 | | | | π runtime | π΄ type-not-fn-3 | π΄ type-not-fn-3 | π΄ type-not-fn-4 |
|
| 234 | +| | color-map | π» compile | β | β | β | |
| 235 | +| | | π runtime | β | β | β | |
226 | 236 | | | es-cjs | π» compile | π’ | π’ | π’ |
|
227 | 237 | | | | π runtime | π΄ type-not-fn-3 | π΄ type-not-fn-3 | π΄ type-not-fn-4 |
|
228 | 238 | | | esm | π» compile | β | β | β |
|
229 | 239 | | | | π runtime | β | β | β |
|
230 | 240 | | | esm-cjs | π» compile | π’ | π’ | π’ |
|
231 | 241 | | | | π runtime | π’ | π’ | π’ |
|
232 |
| -| | param-case | π» compile | π΄ TS1259-a-1 | π’ | π΄ TS2497-a | |
| 242 | +| | param-case | π» compile | π’ | π’ | π΄ TS2497-a | |
233 | 243 | | | | π runtime | π’ | π’ | π’ |
|
234 | 244 | | esnext | assertron | π» compile | π’ | π’ | π΄ TS2339 |
|
235 | 245 | | | | π runtime | π΄ type-not-fn | π΄ type-not-fn | π΄ type-not-fn |
|
236 | 246 | | | cjs | π» compile | π’ | π’ | π’ |
|
237 | 247 | | | | π runtime | π΄ type-not-fn-3 | π΄ type-not-fn-3 | π΄ type-not-fn-4 |
|
| 248 | +| | color-map | π» compile | β | β | β | |
| 249 | +| | | π runtime | β | β | β | |
238 | 250 | | | es-cjs | π» compile | π’ | π’ | π’ |
|
239 | 251 | | | | π runtime | π΄ type-not-fn-3 | π΄ type-not-fn-3 | π΄ type-not-fn-4 |
|
240 | 252 | | | esm | π» compile | β | β | β |
|
241 | 253 | | | | π runtime | β | β | β |
|
242 | 254 | | | esm-cjs | π» compile | π’ | π’ | π’ |
|
243 | 255 | | | | π runtime | π’ | π’ | π’ |
|
244 |
| -| | param-case | π» compile | π΄ TS1259-a-1 | π’ | π΄ TS2497-a | |
| 256 | +| | param-case | π» compile | π’ | π’ | π΄ TS2497-a | |
245 | 257 | | | | π runtime | π’ | π’ | π’ |
|
246 | 258 | | node16 | assertron | π» compile | π’ | π’ | π΄ TS2339 |
|
247 | 259 | | | | π runtime | π΄ ref-not-defined | π΄ ref-not-defined | π΄ ref-not-defined |
|
248 | 260 | | | cjs | π» compile | π’ | π’ | π’ |
|
249 | 261 | | | | π runtime | π΄ ref-not-defined | π΄ ref-not-defined | π΄ ref-not-defined |
|
| 262 | +| | color-map | π» compile | β | β | β | |
| 263 | +| | | π runtime | β | β | β | |
250 | 264 | | | es-cjs | π» compile | π’ | π’ | π’ |
|
251 | 265 | | | | π runtime | π΄ ref-not-defined | π΄ ref-not-defined | π΄ ref-not-defined |
|
252 | 266 | | | esm | π» compile | β | β | β |
|
253 | 267 | | | | π runtime | β | β | β |
|
254 | 268 | | | esm-cjs | π» compile | π’ | π’ | π’ |
|
255 | 269 | | | | π runtime | π΄ ref-not-defined | π΄ ref-not-defined | π΄ ref-not-defined |
|
256 |
| -| | param-case | π» compile | π΄ TS1259-a-1 | π’ | π΄ TS2497-a | |
| 270 | +| | param-case | π» compile | π’ | π’ | π΄ TS2497-a | |
257 | 271 | | | | π runtime | π΄ ref-not-defined | π΄ ref-not-defined | π΄ ref-not-defined |
|
258 | 272 | | nodenext | assertron | π» compile | π’ | π’ | π΄ TS2339 |
|
259 | 273 | | | | π runtime | π΄ ref-not-defined | π΄ ref-not-defined | π΄ ref-not-defined |
|
260 | 274 | | | cjs | π» compile | π’ | π’ | π’ |
|
261 | 275 | | | | π runtime | π΄ ref-not-defined | π΄ ref-not-defined | π΄ ref-not-defined |
|
| 276 | +| | color-map | π» compile | β | β | β | |
| 277 | +| | | π runtime | β | β | β | |
262 | 278 | | | es-cjs | π» compile | π’ | π’ | π’ |
|
263 | 279 | | | | π runtime | π΄ ref-not-defined | π΄ ref-not-defined | π΄ ref-not-defined |
|
264 | 280 | | | esm | π» compile | β | β | β |
|
265 | 281 | | | | π runtime | β | β | β |
|
266 | 282 | | | esm-cjs | π» compile | π’ | π’ | π’ |
|
267 | 283 | | | | π runtime | π΄ ref-not-defined | π΄ ref-not-defined | π΄ ref-not-defined |
|
268 |
| -| | param-case | π» compile | π΄ TS1259-a-1 | π’ | π΄ TS2497-a | |
| 284 | +| | param-case | π» compile | π’ | π’ | π΄ TS2497-a | |
269 | 285 | | | | π runtime | π΄ ref-not-defined | π΄ ref-not-defined | π΄ ref-not-defined |
|
270 | 286 |
|
271 |
| -- `TS1259-a`: Module '"assert"' can only be default-imported using the 'allowSyntheticDefaultImports' flag |
272 |
| -- `TS1259-a-1`: Module '"/home/homa/code/cyberuni/ts-esm-interop/node_modules/.pnpm/param-case@1.1.2/node_modules/param-case/param-case"' can only be default-imported using the 'allowSyntheticDefaultImports' flag |
273 |
| -- `TS1259-a-t`: Module '"/home/homa/code/cyberuni/ts-esm-interop/node_modules/.pnpm/assertion-error@1.1.0/node_modules/assertion-error/index"' can only be default-imported using the 'allowSyntheticDefaultImports' flag |
274 |
| -- `TS1259-e`: Module '"assert"' can only be default-imported using the 'esModuleInterop' flag |
275 |
| -- `TS1259-e-1`: Module '"/home/homa/code/cyberuni/ts-esm-interop/node_modules/.pnpm/param-case@1.1.2/node_modules/param-case/param-case"' can only be default-imported using the 'esModuleInterop' flag |
276 |
| -- `TS1259-e-t`: Module '"/home/homa/code/cyberuni/ts-esm-interop/node_modules/.pnpm/assertion-error@1.1.0/node_modules/assertion-error/index"' can only be default-imported using the 'esModuleInterop' flag |
277 | 287 | - `TS2339`: Property 'truthy' does not exist on type 'typeof import("/home/homa/code/cyberuni/ts-esm-interop/node_modules/.pnpm/assertron@7.1.3/node_modules/assertron/lib/index")'.
|
278 | 288 | - `TS2339-1`: Property 'default' does not exist on type '(value: string, locale?: string | undefined) => string'.
|
| 289 | +- `TS2349`: This expression is not callable. |
279 | 290 | - `TS2497-a`: This module can only be referenced with ECMAScript imports/exports by turning on the 'allowSyntheticDefaultImports' flag and referencing its default export.
|
280 | 291 | - `TS2497-e`: This module can only be referenced with ECMAScript imports/exports by turning on the 'esModuleInterop' flag and referencing its default export.
|
281 | 292 | - `ref-not-defined`: ReferenceError: exports is not defined in ES module scope
|
|
0 commit comments