Skip to content

Set the default type argument of Binder to Y.Snapshot #25

@johannes-lindgren

Description

@johannes-lindgren

Binder is defined as follows:

export type Binder<S extends Snapshot> = ...

It would be nice if we would make the type argument optional:

export type Binder<S extends Snapshot = Snapshot> = ...

Then it would be consistent with binder<T>() which infers T as Snapshot if it's not explicitly provided.

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions