Skip to content

Commit a720150

Browse files
committed
Changed solution to 34
1 parent ee88849 commit a720150

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/05-generics/34-type-helpers.solution.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,14 @@ type ButtonVariant = "primary" | "secondary" | "tertiary";
44
type LooseIcon = LooseAutocomplete<Icon>;
55
type LooseButtonVariant = LooseAutocomplete<ButtonVariant>;
66

7-
export type LooseAutocomplete<T> = T | (string & {});
7+
/**
8+
* Comment explaining what LooseAutocomplete does
9+
*/
10+
type LooseAutocomplete<T> = T | (string & {});
11+
12+
const looseAutocomplete = (t: any) => {
13+
return "hello";
14+
};
815

916
export const icons: LooseIcon[] = [
1017
"home",

0 commit comments

Comments
 (0)