Русское сообщество разработки на PHP-фреймворке Laravel.
Ты не вошёл. Вход тут.
Страницы 1
The ComponentProps<any> error in PHP Storm is a type-checking issue because module is expected to have a more specific type than any. The code works because JavaScript is dynamically typed, but to fix the TypeScript error, you can specify the module type as any or { default: { layout: (page: ReactNode) => ReactNode } }. The correct and more specific type, however, would be a ComponentType.
Страницы 1