Skip to content

Commit

Permalink
type
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxingbaoyu committed Nov 28, 2022
1 parent 7ec3ba3 commit 5c24a7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/babel-helper-compilation-targets/src/debug.ts
Expand Up @@ -12,7 +12,7 @@ export function getInclusionReasons(
targetVersions: Targets,
list: { [key: string]: Targets },
) {
const minVersions = list[item] || ({} as Targets);
const minVersions = list[item] || {};

return (Object.keys(targetVersions) as Target[]).reduce((result, env) => {
const minVersion = getLowestImplementedVersion(minVersions, env);
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-helper-compilation-targets/src/index.ts
Expand Up @@ -46,7 +46,7 @@ function validateTargetNames(targets: Targets): TargetsTuple {
}
}

return targets as any;
return targets as typeof TargetNames;
}

export function isBrowsersQueryValid(browsers: unknown): boolean {
Expand Down

0 comments on commit 5c24a7a

Please sign in to comment.