javve / list.js

The perfect library for adding search, sort, filters and flexibility to tables, lists and various HTML elements. Built to be invisible and work on existing HTML.
https://listjs.com
MIT License
11.2k stars 896 forks source link

Typescript definitions file #639

Open moshner opened 5 years ago

moshner commented 5 years ago

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

KBeDevel commented 4 years ago

Check this

thewasta commented 3 years ago

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?

KBeDevel commented 3 years ago

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