[過去ログ]
TypeScript part2 [転載禁止]©2ch.net (1002レス)
TypeScript part2 [転載禁止]©2ch.net http://mevius.5ch.net/test/read.cgi/tech/1430386649/
上
下
前次
1-
新
通常表示
512バイト分割
レス栞
抽出解除
必死チェッカー(本家)
(べ)
レス栞
あぼーん
このスレッドは過去ログ倉庫に格納されています。
次スレ検索
歴削→次スレ
栞削→次スレ
過去ログメニュー
778: デフォルトの名無しさん [sage] 2017/07/10(月) 13:26:30.50 ID:gqDySAuG typescriptのエラーってよくわかんないことある (81,32): error TS2322: Type '{ path: "/logout"; component: typeof Logout; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<Route> & Readonly<{ children?: ReactNode; }> & Rea...'. Type '{ path: "/logout"; component: typeof Logout; }' is not assignable to type 'Readonly<RouteProps>'. Types of property 'component' are incompatible. Type 'typeof Logout' is not assignable to type 'StatelessComponent<RouteComponentProps<any> | undefined> | ComponentClass<RouteComponentProps<any...'. Type 'typeof Logout' is not assignable to type 'ComponentClass<RouteComponentProps<any> | undefined>'. ってでて、何のことかわからない。 偶然解決して、総合するとReact.Componet<P,S>のSをvoidに指定は駄目ってことらしい。 上記エラーメッセージからどう読み取ればそういうことなわけ? http://mevius.5ch.net/test/read.cgi/tech/1430386649/778
上
下
前次
1-
新
書
関
写
板
覧
索
設
栞
歴
スレ情報
赤レス抽出
画像レス抽出
歴の未読スレ
AAサムネイル
Google検索
Wikipedia
ぬこの手
ぬこTOP
1.069s*