You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
src/04-advanced-components/28-passing-react-components-vs-passing-react-nodes.problem.tsx(30,21): error TS7006: Parameter 'index' implicitly has an 'any' type.
98
98
src/04-advanced-components/28-passing-react-components-vs-passing-react-nodes.solution.1.tsx(30,9): error TS2322: Type '(index: number) => number' is not assignable to type 'FC<number>'.
99
99
Type 'number' is not assignable to type 'ReactElement<any, any>'.
src/05-advanced-hooks/42-discriminated-tuples-from-custom-hooks.problem.tsx(34,16): error TS18048: 'value' is possibly 'undefined'.
131
133
src/05-advanced-hooks/42-discriminated-tuples-from-custom-hooks.problem.tsx(34,22): error TS2339: Property 'title' does not exist on type 'Error | {title: string; }'.
132
134
Property 'title' does not exist on type 'Error'.
135
+
src/06-types-deep-dive/44-understanding-jsx-element.explainer.tsx(23,4): error TS2786: 'Component2' cannot be used as a JSX component.
136
+
Its return type 'ReactNode' is not a valid JSX element.
137
+
Type 'undefined' is not assignable to type 'Element | null'.
138
+
src/06-types-deep-dive/47-add-new-global-element.problem.tsx(2,3): error TS2339: Property 'something' does not exist on type 'JSX.IntrinsicElements'.
139
+
src/06-types-deep-dive/47-add-new-global-element.problem.tsx(2,23): error TS2339: Property 'something' does not exist on type 'JSX.IntrinsicElements'.
133
140
src/06-types-deep-dive/50-add-attribute-to-div-elements.problem.tsx(6,7): error TS2717: Subsequent property declarations must have the same type. Property 'div' must be of type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>', but here has type 'ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement> &{something?:string|undefined; }'.
134
141
src/06-types-deep-dive/50-add-attribute-to-div-elements.problem.tsx(13,30): error TS2322: Type '{something: string; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
135
142
Property 'something' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
@@ -142,6 +149,8 @@ src/07-advanced-patterns/51-required-context.problem.tsx(59,11): error TS2322: T
142
149
src/07-advanced-patterns/53-forward-ref-with-generics.explainer.1.tsx(26,28): error TS2344: Type 'false' does not satisfy the constraint 'true'.
143
150
src/07-advanced-patterns/53-forward-ref-with-generics.explainer.2.tsx(26,28): error TS2344: Type 'false' does not satisfy the constraint 'true'.
src/07-advanced-patterns/55-as-prop.solution.2.tsx(10,11): error TS2322: Type '{as: TAs; ref?:LegacyRef<HTMLDivElement> | undefined; key?: Key | null | undefined; defaultChecked?: boolean | undefined; defaultValue?: string | ... 2 more ... | undefined; ... 259 more ...; onTransitionEndCapture?: TransitionEventHandler<...> | undefined; } | ... 122 more ... | {...; }' is not assignable to type 'IntrinsicAttributes'.
153
+
Type '{as: TAs; id: string; }' has no properties in common with type 'IntrinsicAttributes'.
145
154
src/07-advanced-patterns/56-as-prop-with-custom-components.problem.tsx(5,11): error TS2604: JSX element type 'Comp' does not have any construct or call signatures.
146
155
src/07-advanced-patterns/56-as-prop-with-custom-components.problem.tsx(12,22): error TS2322: Type '{as: (props: { href:string; children?:ReactNode; }) =>Element; href: string; }' is not assignable to type 'IntrinsicAttributes &{as: unknown; }'.
147
156
Property 'href' does not exist on type 'IntrinsicAttributes &{as: unknown; }'.
@@ -861,7 +870,7 @@ exports[`vitest > Should have the correct Vitest errors 1`] = `
861
870
},
862
871
{
863
872
"assertionResults": [],
864
-
"message": "No test found in suite src/06-types-deep-dive/43-understand-react-namespace-export.explainer.ts",
0 commit comments