Giter Site home page Giter Site logo

Comments (8)

frost-cy avatar frost-cy commented on June 1, 2024

Created Google internal issue http://b/236797164

from tsickle.

frost-cy avatar frost-cy commented on June 1, 2024

Triage: As it is the externs, we strip the string values. May I know why this is an issue?

from tsickle.

lgemeinhardt avatar lgemeinhardt commented on June 1, 2024

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.

mprobst avatar mprobst commented on June 1, 2024

from tsickle.

lgemeinhardt avatar lgemeinhardt commented on June 1, 2024

@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.

mprobst avatar mprobst commented on June 1, 2024

from tsickle.

lgemeinhardt avatar lgemeinhardt commented on June 1, 2024

@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.

lgemeinhardt avatar lgemeinhardt commented on June 1, 2024

Looks like jsinterop-generator works w/o enum values.

from tsickle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.