Skip to main content

Type Alias: OptionsOf<S>

OptionsOf<S> = S extends "baseball" ? SurfaceOptions<BaseballParamUpdates, BaseballColorKey, BaseballDisplayRange> : S extends "basketball" ? SurfaceOptions<BasketballParamUpdates, BasketballColorKey, BasketballDisplayRange> : S extends "curling" ? SurfaceOptions<CurlingParamUpdates, CurlingColorKey, CurlingDisplayRange> : S extends "football" ? SurfaceOptions<FootballParamUpdates, FootballColorKey, FootballDisplayRange> : S extends "hockey" ? SurfaceOptions<HockeyParamUpdates, HockeyColorKey, HockeyDisplayRange> : S extends "lacrosse" ? SurfaceOptions<LacrosseParamUpdates, LacrosseColorKey, LacrosseDisplayRange> : S extends "soccer" ? SurfaceOptions<SoccerParamUpdates, SoccerColorKey, SoccerDisplayRange> : S extends "softball" ? SurfaceOptions<SoftballParamUpdates, SoftballColorKey, SoftballDisplayRange> : S extends "tennis" ? SurfaceOptions<TennisParamUpdates, TennisColorKey, TennisDisplayRange> : S extends "volleyball" ? SurfaceOptions<..., ..., ...> : never

Defined in: packages/sporty/src/api.ts:143

surface() options for sport S.

Type Parameters​

S​

S extends Sport