Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions packages/compute-baseline/src/baseline/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@ export const BASELINE_LOW_TO_HIGH_DURATION = Temporal.Duration.from({
months: 30,
});

interface FeatureSelector {
compatKeys: [string, ...string[]];
checkAncestors: boolean;
}

type BaselineStatus = "low" | "high" | false;
type BaselineDate = string | null;

Expand All @@ -54,7 +49,10 @@ interface SupportStatus {
* "low" or false, dates, and releases) for those keys.
*/
export function computeBaseline(
featureSelector: FeatureSelector,
featureSelector: {
compatKeys: [string, ...string[]];
checkAncestors?: boolean;
},
compat: Compat = defaultCompat,
): SupportStatus {
const { compatKeys } = featureSelector;
Expand Down