Skip to content

Problem with type definitions for interfaces #3

Open
@Radek-cgs

Description

@Radek-cgs

It seems there is some problem with typing of interfaces (not, any, all).

E.g. is.empty('Alice') is ok, but if I use is.not.empty('Alice') then type checker claims
"Property 'existy' does not exist on type '{}'.ts-plugin(2339)"

I guess the cause of problem is that interfaces are declared in is-it-check.d.ts as

export declare let not: {};
export declare let all: {};
export declare let any: {};

It likely should be something like

export declare let not: any;
export declare let all: any;
export declare let any: any;

but I do not consider myself to be an expert... :-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions