Skip to content

Deque automatically type-infer #97

@zrwusa

Description

@zrwusa

Describe the bug
A deque cannot be automatically type-inferred as a Deque type.
const objArr: Array<{
key: number
}> = [{ key: 1 }, { key: 6 }, { key: 7 }, { key: 3 }, { key: 2 }, { key: 4 }, { key: 5 }];
const deque = new Deque(objArr, { toElementFn: (item) => item.key });

To Reproduce
const objArr: Array<{
key: number
}> = [{ key: 1 }, { key: 6 }, { key: 7 }, { key: 3 }, { key: 2 }, { key: 4 }, { key: 5 }];
const deque = new Deque(objArr, { toElementFn: (item) => item.key });

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