Skip to content

Conversation

@hamed-zeidabadi
Copy link

Replace 'any' type with proper types for better type safety:

  • Change id parameter type from 'any' to 'string' in update() and delete()
  • Change update() return type from 'any' to 'ITutorialData'
  • Reorder update() parameters to (id, data) for consistency with REST conventions
  • Update component calls to match new parameter order

This improves type safety and prevents potential runtime errors from incorrect parameter types.

Replace 'any' type with proper types for better type safety:
- Change id parameter type from 'any' to 'string' in update() and delete()
- Change update() return type from 'any' to 'ITutorialData'
- Reorder update() parameters to (id, data) for consistency with REST conventions
- Update component calls to match new parameter order

This improves type safety and prevents potential runtime errors from
incorrect parameter types.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant