Rust很明顯是個失敗的語言,一個unwrap就能繞過一切… 我覺得TypeScript才是成功的語言,優雅的典範配上嚴厲的ESLint,誰也別想填any,只要你填錯,立刻給你 No overload matches this call. The following overloads were considered, but none matched: Overload 1 of 2: (props: Omit & Pick & Partial & { __TS_INTERNAL_EXTRA_PROPS__: never; }, "classes" | "component" | "sx" >, keyof SomeExtremelyComplicatedGenericYouDidNotWant >): ReactElement | null The following error was detected: Type '{ children: string; format: "primary" | "secondary"; variant: "contained" | "outlined" | "text"; }' is not assignable to type 'IntrinsicAttributes & Omit & Pick & Partial & { __ts_internal_component_meta_do_not_touch?: never; }, "classes" | "component" | "sx" >, keyof NeverTypeBecauseYouPassedTheWrongProp >' Property 'format' does not exist on type: 'IntrinsicAttributes & Omit' TS7006: The parameter 'props' implicitly has an 'any' type, even though the compiler has generated 1.8MB of type information to prove otherwise. TS7075: Type instantiation is excessively deep and possibly infinite. TypeScript has stopped recursing to avoid summoning Cthulhu. 在 createCompilerDiagnosticForNode (node_modules/typescript/internal/babelified/compiler.js:118284:24) 在 reportErrorThatCompilerCanNeverExplain (node_modules/typescript/internal/babelified/compiler.js:118999:44) 在 checkCallExpression (node_modules/typescript/internal/babelified/compiler.js:105881:31) at checkExpressionWorker (node_modules/typescript/internal/babelified/compiler.js:104421:28) at checkExpression (node_modules/typescript/internal/babelified/compiler.js:104200:42) at checkBinaryLikeExpression (node_modules/typescript/internal/babelified/compiler.js:105402:32) at checkExpressionWorker (node_modules/typescript/internal/babelified/compiler.js:104389:28) at checkExpression (node_modules/typescript/internal/babelified/compiler.js:104200:42) at getTypeOfNode (node_modules/typescript/internal/babelified/compiler.js:97611:28) at getAssignedTypeOfExpression (node_modules/typescript/internal/babelified/compiler.js:95432:25) at inferFromAssignment (node_modules/typescript/internal/babelified/compiler.js:95451:17) at recursivelyExpandInfiniteConditionalType (node_modules/typescript/internal/babelified/compiler.js:98773:52) at deepInferUntilYourBrainDies (node_modules/typescript/internal/babelified/compiler.js:99999:99) at typeCheckTheThingThatWasNeverMeantToExist (node_modules/typescript/internal/babelified/compiler.js:100001:12) at checkTypeRelatedToWithFailureOutputThatNoHumanCanRead (node_modules/typescript/internal/babelified/compiler.js:102387:62) at checkTypeRelatedTo (node_modules/typescript/internal/babelified/compiler.js:102200:26) at checkPropertyWithInsaneGenericDepth (node_modules/typescript/internal/babelified/compiler.js:101102:28) 在 checkJsxAttributesAssignableToType (node_modules/typescript/internal/babelified/compiler.js:108441:19) at checkJsxOpeningLikeElementOrOpeningFragment (node_modules/typescript/internal/babelified/compiler.js:108292:29) at checkJsxOpeningElement (node_modules/typescript/internal/babelified/compiler.js:108113:28) 在 checkJsxSelfClosingElement (node_modules/typescript/internal/babelified/compiler.js:108100:22) 在 checkJsxElement (node_modules/typescript/internal/babelified/compiler.js:108044:25) 在 checkJsxNode (node_modules/typescript/internal/babelified/compiler.js:108020:28) at checkExpressionWorker (node_modules/typescript/internal/babelified/compiler.js:104399:32) at checkExpression (node_modules/typescript/internal/babelified/compiler.js:104200:42) at getTypeOfNode (node_modules/typescript/internal/babelified/compiler.js:97611:28) at getWidenedTypeOrInfiniteLoop (node_modules/typescript/internal/babelified/compiler.js:96777:20) at getTypeFromFlowNodeOrGiveUpOnEverything (node_modules/typescript/internal/babelified/compiler.js:95204:19)
正在加载线程详情
正在从 X 获取原始推文,整理成清爽的阅读视图。
通常只需几秒钟,请稍候。