We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DropResult
Making DropResult a generic type to specify type of droppableId
droppableId
Right now I have to assert the type.
async function onDragEng({ source, destination, draggableId }: DropResult) { if (!destination) return if (destination.droppableId === source.droppableId) { reorderTasks( source.droppableId as BoardKey, source.index, destination.index ) } }
I would like to specify type for droppableId in DropResult type argument
async function onDragEng({ source, destination, draggableId }: DropResult<BoardKey>) { if (!destination) return if (destination.droppableId === source.droppableId) { reorderTasks( source.droppableId, source.index, destination.index ) } }
The text was updated successfully, but these errors were encountered:
refactor(types): make Id generic
Id
7c85952
Id should have type argument that accepts string literals re hello-pangea#817
refactor(types): make Id generic (#818)
a764bcf
Id accepts string literals as a generic type. re #817
Successfully merging a pull request may close this issue.
Description
Making
DropResult
a generic type to specify type ofdroppableId
Right now I have to assert the type.
I would like to specify type for
droppableId
in DropResult type argumentThe text was updated successfully, but these errors were encountered: