Skip to content

Missing type definitions for move descriptor methods #8

@mut-ex

Description

@mut-ex

The exported Move type from the module does not include the following methods:

    isCapture(): boolean;
    isPromotion(): boolean;
    isEnPassant(): boolean;
    isKingsideCastle(): boolean;
    isQueensideCastle(): boolean;
    isBigPawn(): boolean;

As a result when I attempt to call these methods on a move returned from validateMove(), I get an error from the linter about these properties not existing on type Move

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