Skip to content

Commit 36b3f5d

Browse files
authored
compute-baseline: Make withAncestors optional (#936)
1 parent 15ec110 commit 36b3f5d

File tree

1 file changed

+4
-6
lines changed
  • packages/compute-baseline/src/baseline

1 file changed

+4
-6
lines changed

packages/compute-baseline/src/baseline/index.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,6 @@ export const BASELINE_LOW_TO_HIGH_DURATION = Temporal.Duration.from({
3131
months: 30,
3232
});
3333

34-
interface FeatureSelector {
35-
compatKeys: [string, ...string[]];
36-
checkAncestors: boolean;
37-
}
38-
3934
type BaselineStatus = "low" | "high" | false;
4035
type BaselineDate = string | null;
4136

@@ -54,7 +49,10 @@ interface SupportStatus {
5449
* "low" or false, dates, and releases) for those keys.
5550
*/
5651
export function computeBaseline(
57-
featureSelector: FeatureSelector,
52+
featureSelector: {
53+
compatKeys: [string, ...string[]];
54+
checkAncestors?: boolean;
55+
},
5856
compat: Compat = defaultCompat,
5957
): SupportStatus {
6058
const { compatKeys } = featureSelector;

0 commit comments

Comments
 (0)