list.js icon indicating copy to clipboard operation
list.js copied to clipboard

Typescript definitions file

Open moshner opened this issue 6 years ago • 3 comments

Can you please provide a definitions file for typescript? http://www.typescriptlang.org/docs/handbook/declaration-files/introduction.html

Here is a great repo: https://github.com/DefinitelyTyped/DefinitelyTyped

moshner avatar Jan 07 '19 20:01 moshner

Check this

KBeDevel avatar Jan 06 '20 19:01 KBeDevel

Hey! How can I type values()? For example this:

        this.list.filter(function (item: ListItem) {

            if (bool) {
                return item.values().protected === "1";
            }
            return true;
        });

give a error because protected does not exist on values()

I know I can ignore it @ts-ignore but... Is it possible?

thewasta avatar Jun 02 '21 09:06 thewasta

@thewasta This issue should be reported to the DefinitelyTyped repo (in case you are using that type definitions)

KBeDevel avatar Jun 22 '21 15:06 KBeDevel