Git Product home page Git Product logo

groovy-to-js's People

Contributors

julien-moreau avatar samjoch avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

groovy-to-js's Issues

Get errors while compiling in latest version

tsc -v
Version 3.2.4


src/analyser/analyser.ts:103:13 - error TS7018: Object literal's property 'variable' implicitly has an 'any' type.

103             variable: null
                ~~~~~~~~~~~~~~

src/analyser/analyser.ts:116:17 - error TS7017: Element implicitly has an 'any' type because type '{ 'def': string; }' has no index signature.

116             if (keywords[right])
                    ~~~~~~~~~~~~~~~

src/analyser/analyser.ts:117:25 - error TS7017: Element implicitly has an 'any' type because type '{ 'def': string; }' has no index signature.

117                 right = keywords[right];
                            ~~~~~~~~~~~~~~~

src/analyser/analyser.ts:163:26 - error TS7017: Element implicitly has an 'any' type because type '{ 'println': string; 'assert': string; }' has no index signature.

163                 else if (functions.global[right]) {
                             ~~~~~~~~~~~~~~~~~~~~~~~

src/analyser/analyser.ts:164:32 - error TS7017: Element implicitly has an 'any' type because type '{ 'println': string; 'assert': string; }' has no index signature.

164                     const fn = functions.global[right];
                                   ~~~~~~~~~~~~~~~~~~~~~~~

src/analyser/analyser.ts:431:33 - error TS7017: Element implicitly has an 'any' type because type '{}' has no index signature.

431                                 functions.class[right] = {
                                    ~~~~~~~~~~~~~~~~~~~~~~

src/analyser/analyser.ts:524:56 - error TS7017: Element implicitly has an 'any' type because type '{ 'add': string; 'each': { name: string; parameters: string[]; }; 'eachWithIndex': { name: string; parameters: string; }; 'sort': { name: string; parameters: string; }; 'unique': { name: string; returns: VariableType; }; 'intersect': { ...; }; 'take': { ...; }; 'indexOf': { ...; }; }' has no index signature.

524                 variable.type === VariableType.ARRAY ? functions.array[next] :
                                                           ~~~~~~~~~~~~~~~~~~~~~

src/analyser/analyser.ts:525:54 - error TS7017: Element implicitly has an 'any' type because type '{ 'containsKey': string; }' has no index signature.

525                 variable.type === VariableType.MAP ? functions.map[next] :
                                                         ~~~~~~~~~~~~~~~~~~~

src/analyser/analyser.ts:526:96 - error TS7017: Element implicitly has an 'any' type because type '{ 'add': string; 'each': { name: string; parameters: string[]; }; 'eachWithIndex': { name: string; parameters: string; }; 'sort': { name: string; parameters: string; }; 'unique': { name: string; returns: VariableType; }; 'intersect': { ...; }; 'take': { ...; }; 'indexOf': { ...; }; }' has no index signature.

526                 (variable.type === VariableType.ANY || variable.type === VariableType.CLASS) ? functions.array[next] || functions.map[next] || functions.class[next] : null;
                                                                                                   ~~~~~~~~~~~~~~~~~~~~~

src/analyser/analyser.ts:526:121 - error TS7017: Element implicitly has an 'any' type because type '{ 'containsKey': string; }' has no index signature.

526                 (variable.type === VariableType.ANY || variable.type === VariableType.CLASS) ? functions.array[next] || functions.map[next] || functions.class[next] : null;
                                                                                                                            ~~~~~~~~~~~~~~~~~~~

src/analyser/analyser.ts:526:144 - error TS7017: Element implicitly has an 'any' type because type '{}' has no index signature.

526                 (variable.type === VariableType.ANY || variable.type === VariableType.CLASS) ? functions.array[next] || functions.map[next] || functions.class[next] : null;
                                                                                                                                                   ~~~~~~~~~~~~~~~~~~~~~

src/analyser/analyser.ts:531:60 - error TS7017: Element implicitly has an 'any' type because type '{ 'size': { name: string; returns: VariableType; }; }' has no index signature.

531                     variable.type === VariableType.ARRAY ? properties.array[next] :
                                                               ~~~~~~~~~~~~~~~~~~~~~~

src/analyser/analyser.ts:532:58 - error TS7017: Element implicitly has an 'any' type because type '{ 'size': { name: string; returns: VariableType; }; }' has no index signature.

532                     variable.type === VariableType.ANY ? properties.array[next] : null;
                                                             ~~~~~~~~~~~~~~~~~~~~~~

src/analyser/analyser.ts:713:22 - error TS7017: Element implicitly has an 'any' type because type '{ '-': string; '-=': string; '+': string; '+=': string; '*': string; '*=': string; '<<': string; }' has no index signature.

713             let fn = operators[operator || operatorAssign];
                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


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.