9 lines
360 B
TypeScript
9 lines
360 B
TypeScript
|
|
export type ThrownPitch = {
|
|
readonly name: string;
|
|
readonly speed: number; // in mph
|
|
readonly spinType: "6-12" | "4-10" | "3-9" | "12-6" | "9-3" | "none";
|
|
readonly rpm: number; // example: 6-12 with fast rpm is fastball, 6-12 with slow rpm is changeup
|
|
readonly accuracy: number; // how likely that a ball will end up where the pitcher meant for it to.
|
|
}
|