const enums not supported in some transpilers
See original GitHub issueDescribe the Bug
Version
appears to be undefined
.
Steps to Reproduce
import { CloudEvent, Version } from 'cloudevents'
new CloudEvent({
id: event.id.toString(),
source: event.source,
type: event.type,
subject: event.subject,
time: event.time,
data: event.data,
specversion: Version.V03,
})
Expected Behavior
Version should be defined.
Additional context
Using package from NPM version 3.1.0
.
Issue Analytics
- State:
- Created 3 years ago
- Comments:12 (6 by maintainers)
Top Results From Across the Web
Why is `const enum` allowed with `isolatedModules`?
With transpiler compilation happening on an isolated-module basis: the compiler reads a typescript module. the module's type information is ...
Read more >Comparing TypeScript's union types, enums and const enums
Unions and enums pose no problems when using with different transpilers. On the other hand, const enums may cause some, as written here....
Read more >TS: Enum vs Union type in performance | by Suyeon Kang
1. const enum. const enum doesn't create any extra code(reverse mapping) as well as being a target for tree-shaking. · 2. as const....
Read more >babel-plugin-use-const-enum - npm
Use TypeScript `const` enums, Fix babel not support const enum. Latest version: 0.0.9, last published: 3 years ago.
Read more >Frequently Asked Questions | Manual - Deno
const enum is not supported. const enum s require type information to direct the emit, as const enum s get written out as...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Not stale
This issue is stale because it has been open 30 days with no activity.