We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee88849 commit a720150Copy full SHA for a720150
src/05-generics/34-type-helpers.solution.tsx
@@ -4,7 +4,14 @@ type ButtonVariant = "primary" | "secondary" | "tertiary";
4
type LooseIcon = LooseAutocomplete<Icon>;
5
type LooseButtonVariant = LooseAutocomplete<ButtonVariant>;
6
7
-export type LooseAutocomplete<T> = T | (string & {});
+/**
8
+ * Comment explaining what LooseAutocomplete does
9
+ */
10
+type LooseAutocomplete<T> = T | (string & {});
11
+
12
+const looseAutocomplete = (t: any) => {
13
+ return "hello";
14
+};
15
16
export const icons: LooseIcon[] = [
17
"home",
0 commit comments