Spaces:
Sleeping
Sleeping
File size: 333 Bytes
90cbf22 |
1 2 3 4 5 6 7 8 9 10 |
import { ObjectType, PropertyValidators, Value } from 'convex/values';
import type { Game } from './game';
export function inputHandler<ArgsValidator extends PropertyValidators, Return extends Value>(def: {
args: ArgsValidator;
handler: (game: Game, now: number, args: ObjectType<ArgsValidator>) => Return;
}) {
return def;
}
|