Skip to content

Commit 1f46830

Browse files
committed
Fix VersionInfo derived type to pass linter
1 parent b60777a commit 1f46830

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎src/cli/types.ts‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ export type VersionInfoBase = json.FromSchema<typeof versionInfoBaseSchema>;
2525
/**
2626
* The full type that describes the expected output of the `codeql version` command.
2727
*/
28-
export type VersionInfo = VersionInfoBase & {
29-
// `features` remains optional, but the more specific type takes precedence
30-
// over the `any` type derived by `FromSchema`.
28+
export type VersionInfo = Omit<VersionInfoBase, "features"> & {
3129
features?: { [name: string]: boolean };
3230
};

0 commit comments

Comments
 (0)