bugs bashed

This commit is contained in:
2025-09-08 22:45:42 -04:00
parent 41bd1fce38
commit fb3f567a5b
10 changed files with 55 additions and 64 deletions

View File

@@ -145,7 +145,7 @@ export default {
resolveQuit: () => null,
getResult: (state) =>
Object.entries(state.playerHands).find(
([_, hand]) => hand.length === 52
([_, hand]) => hand.length === config["cards to win"]
)?.[0],
}),
} satisfies Game<

9
pkg/shared/types.ts Normal file
View File

@@ -0,0 +1,9 @@
export type UnionKeys<T> = T extends any ? keyof T : never;
export type ExtractPropertyType<
T,
P extends string | number | symbol
> = T extends {
[K in P]: any;
}
? T[P]
: never;