({
id,
matches,
}: {
id: string;
matches?: UIMatch[];
})
| 15 | } |
| 16 | |
| 17 | export function useTypedMatchesData<T = AppData>({ |
| 18 | id, |
| 19 | matches, |
| 20 | }: { |
| 21 | id: string; |
| 22 | matches?: UIMatch[]; |
| 23 | }): UseDataFunctionReturn<T> | undefined { |
| 24 | if (!matches) { |
| 25 | matches = useMatches(); |
| 26 | } |
| 27 | |
| 28 | return useTypedDataFromMatches<T>({ id, matches }); |
| 29 | } |
| 30 | |
| 31 | export function useTypedMatchData<T = AppData>( |
| 32 | match: UIMatch | undefined |
no test coverage detected
searching dependent graphs…