@sports-alliance/sports-lib
Version:
A Library to for importing / exporting and processing GPX, TCX, FIT and JSON files from services such as Strava, Movescount, Garmin, Polar etc
14 lines (13 loc) • 664 B
TypeScript
export interface StreamDerivationRule {
provides: string;
requiresAll?: string[];
requiresOneOf?: string[];
}
export declare function getStreamDerivationRules(): StreamDerivationRule[];
export declare function getStreamDerivationRule(targetType: string): StreamDerivationRule | null;
/**
* Returns dependency types to add in dependency-closure resolution.
* For `requiresOneOf`, all candidates are returned as conservative dependencies.
*/
export declare function getDependencyTypesForResolution(targetType: string): string[];
export declare function canDeriveStreamType(targetType: string, hasStreamType: (streamType: string) => boolean): boolean;