Skip to content

Commit f2ba76d

Browse files
committed
Remove types to make prettier to read for now
1 parent 70958b7 commit f2ba76d

File tree

1 file changed

+4
-6
lines changed
  • packages/express/src/example/liveview

1 file changed

+4
-6
lines changed

packages/express/src/example/liveview/ios.ts

+4-6
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ export const iosLiveView = createLiveView({
1010
console.log("event", event);
1111
switch (event.type) {
1212
case "toggle-favorite":
13-
favorites[event.name as Cat] = !favorites[event.name as Cat];
13+
favorites[event.name] = !favorites[event.name];
1414
break;
1515
}
1616
},
17-
render: (ctx) => {
17+
render: () => {
1818
return html` <list>
1919
${cats.map((cat) => {
2020
return html`
@@ -50,8 +50,6 @@ const cats = [
5050
"Siegfried",
5151
"Truman",
5252
"Washy",
53-
] as const;
53+
];
5454

55-
type Cat = typeof cats[number];
56-
57-
const favorites = {} as Record<Cat, boolean>;
55+
const favorites: Record<string, boolean> = {};

0 commit comments

Comments
 (0)