diff options
| author | Adam Malczewski <[email protected]> | 2026-03-10 16:55:36 +0900 |
|---|---|---|
| committer | Adam Malczewski <[email protected]> | 2026-03-10 16:55:36 +0900 |
| commit | e7c69ea6f7358e78acad36eca99c96eeeed096ce (patch) | |
| tree | 9690c665b68679804a21ab05ae30997e7265cda0 /src/types.ts | |
| parent | e542742c0525ec0971eb89daaf3e8fc1b30e48fb (diff) | |
| download | tirecalc-e7c69ea6f7358e78acad36eca99c96eeeed096ce.tar.gz tirecalc-e7c69ea6f7358e78acad36eca99c96eeeed096ce.zip | |
write app plus touchup
Diffstat (limited to 'src/types.ts')
| -rw-r--r-- | src/types.ts | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/types.ts b/src/types.ts new file mode 100644 index 0000000..75d6945 --- /dev/null +++ b/src/types.ts @@ -0,0 +1,26 @@ +/** + * Type definitions for the tire size data used throughout the app. + * Each size entry has a human-readable label and a diameter in millimeters. + */ + +/** A single rim or tire size option from our reference data. */ +export interface SizeOption { + label: string; + diameter_mm: number; +} + +/** The shape of the imported tire_sizes.json file. */ +export interface TireSizeData { + wheel_sizes: SizeOption[]; + tire_sizes: SizeOption[]; +} + +/** + * Results from the circumference calculation. + * All values derived from: circumference = 3.13772 * (2 * tire + rim) + */ +export interface CircumferenceResult { + mm: number; + cm: number; + inches: number; +} |
