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
Hi,
At current it is more difficult than it should to use ReadonlyArray. I spotted two places where the function signatures could change.
In SortableContext.tsx
export interface Props { children: React.ReactNode; - items: (UniqueIdentifier | {id: UniqueIdentifier})[]; + items: ReadonlyArray<UniqueIdentifier | {id: UniqueIdentifier}>; strategy?: SortingStrategy; id?: string; disabled?: boolean | Disabled; }
In arrayMove.ts
- export function arrayMove<T>(array: T[], from: number, to: number): T[] { + export function arrayMove<T>(array: readonly T[], from: number, to: number): T[] {
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi,
At current it is more difficult than it should to use ReadonlyArray. I spotted two places where the function signatures could change.
In SortableContext.tsx
In arrayMove.ts
The text was updated successfully, but these errors were encountered: