Skip to content

Commit

Permalink
Added extra detail to the comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mattpocock committed Aug 7, 2023
1 parent 76f2a1d commit 782759d
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,14 @@ import { Equal, Expect } from "../helpers/type-utils";
*
* 1. Figure out the correct typings for the `Wrapper` component.
*
* The solution uses generics, and the ComponentType helper.
* The solution uses:
*
* - Generics
* - ElementType
* - One of the following:
* - ComponentPropsWithoutRef
* - ComponentPropsWithRef
* - ComponentProps
*/
export const Wrapper = (props: { as: unknown }) => {
const Comp = props.as;
Expand Down

0 comments on commit 782759d

Please sign in to comment.