Coder Social home page Coder Social logo

lwc-typings-generator's Introduction

Hello ๐Ÿ‘‹

Links

My Projects

These projects are maintained in spare time. Due to the fact that I just discovered WII (console), I have almost none :). Please be patient with response times.

Bitbucket pipes

Related to Salesforce

SFDX Plugins

Mainly CI related stuff but also some plugins that enhance IDE inteligence (like autocompletions and so on)

For better autocompletion

Other

lwc-typings-generator's People

Contributors

ziemniakoss avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

lwc-typings-generator's Issues

Set lib version

Set lib version to correct one, for example "lib": ["ES2021"],

Generate deeper schema

Schema imports support are supported for up to 5-level depth relationships. Currently, we are generating typings only for first level

Better typings for querySelector

Typing for

temple.querySelector 

doesn't support standard html tags. Official extension uses

HTMLElementTagNameMap

to provide typings for standard elements, maybe it could be used here

labelsData is not iterable

Error while generating labels using

sfdx typings:lwc
TypeError: labelsData is not iterable
    at ~/.local/share/sfdx/node_modules/lwc-typings-generator/lib/LabelsTypingsGenerator.js:51:36

Tab names type

It would be useful to have some type that contains all tabs names, like for example in navigable component

this[NavigationMixin.Navigate]({
            type: 'standard__navItemPage',
            attributes: {
                apiName: CustomTabApiName
            },
          state: { 
                c__id: this.recordId 
           }
});

apiNames of custom tabs could be suggested by IDE

Error while generating stdlib

When i tried to generate standard library typings, error occurred with a message

Cannot read properties of undefined (reading 'map')

From stack trace I can see that it occurs after listing existining LWC components in org.
I presume that it was caused by the fact that there were no LWC components in my org.

Support for generic types

Currently, apex typings for fields noted in array notation, like

Account[] acc

are generated correctly but when generic notation is used, like

List<Account> acc

generated type is any which isn't useful. Same goes for maps and sets

Invalid record types types generation

For Sobjects without Record types type for Record Types is not generated correctly. Example could be SObject PricebookEntryAdjustment where type is generate like this

type PricebookEntryAdjustment__RecordType__DevName = ;

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.