Comments (8)
Created Google internal issue http://b/236797164
from tsickle.
Triage: As it is the externs, we strip the string values. May I know why this is an issue?
from tsickle.
I try to use tsickle to move some mappings from https://github.com/DefinitelyTyped/DefinitelyTyped to closure externs and afterwards using https://github.com/google/jsinterop-generator to GWT.
My first try was the google.maps mapping (https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/google.maps/), because I could compare this to the given extern (https://github.com/google/closure-compiler/tree/master/contrib/externs/maps) and was concerned about the difference (assuming the values for enum numbers and strings are needed later on for the JsInterop for GWT).
from tsickle.
from tsickle.
@mprobst Thanks for your answer, but if the closure compiler not supports this types - why the enum test case https://github.com/angular/tsickle/tree/master/test_files/enum has a sample (StringEnum ) for it (correctly converted)? Only difference I see to my sample is the namespace.
from tsickle.
from tsickle.
@mprobst Thanks for the quick clarification.
It sounds tsickle does this on purpose (even if it looks strange, that enum number values are all 1 and enum strings values are all empty and the generated externs looks different, then the official once from closure-compiler externs).
I will check if jsinterop-generator could produce valid mappings and will close this issue afterwards.
from tsickle.
Looks like jsinterop-generator works w/o enum values.
from tsickle.
Related Issues (20)
- target ES2015 combined with external jquery reference throws JSC_REDECLARED_VARIABLE_ERROR HOT 1
- commonJsToGoogmoduleTransformer misses some `module.exports = ...` statements. HOT 5
- Use interfaces instead of namespaces in externs HOT 4
- Is tsickle intended to be used with json files? HOT 1
- can you do a release? HOT 18
- using clutz with a goog.module HOT 1
- package.json from npm appears to point to the wrong source directory HOT 7
- 0.41.0 installed via `npm i [email protected]` includes has possible debug line in it? HOT 1
- Stack overflow when translating a type with circular type parameter HOT 3
- exporting functions instead of classes HOT 2
- No version supporting Typescript 4.5 publicly available HOT 3
- Could not resolve dependency h-joo/TypeScript#ts45-no-double-comments HOT 8
- [email protected] references typescript version that doesnt exist HOT 1
- Could you release a NPM package? HOT 3
- String enums are converted to externs with empty strings enums HOT 5
- tsickle npm version compatible with Angular v15 HOT 3
- BUG: version 0.47.0 not auto released, typescript incompatibility for angular 15.2.1 HOT 1
- Does tsickle handle get/set accessors? HOT 4
- Security Policy violation Outside Collaborators HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tsickle.