Skip to content

inputs should ReadonlyArray<U> instead of U #15

Closed
@f0rr0

Description

@f0rr0

export function useObservable<T, U>(inputFactory: InputFactory<T, U>, initialState?: T, inputs?: U): T | null {

This would enforce the argument to be an array always. Currently it typechecks if I pass anything

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions