Laravel по-русски

Русское сообщество разработки на PHP-фреймворке Laravel.

Ты не вошёл. Вход тут.

#1 Re: Laravel 6/7/8/9/10/11 » Laravel 12 React TypeScript StarterKits Default Layout » Сегодня 11:53:57

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.

Подвал раздела