Skip to content

Commit a9baab8

Browse files
committed
Export CLI cache types
1 parent 33d7086 commit a9baab8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎src/cli/output-cache.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,21 @@ import type { VersionInfo } from "./types";
99
/**
1010
* The keys of the command cache. Each key corresponds to a command whose output we cache.
1111
*/
12-
enum CommandCacheKey {
12+
export enum CommandCacheKey {
1313
Version = "version",
1414
}
1515

1616
/**
1717
* The mapping of CLI commands to the types of the output of each command that we cache.
1818
*/
19-
type CommandCacheKeyOutputMap = {
19+
export type CommandCacheKeyOutputMap = {
2020
[CommandCacheKey.Version]: VersionInfo;
2121
};
2222

2323
/**
2424
* The type of the command cache that is persisted to disk.
2525
*/
26-
interface CommandCacheRecord<K extends CommandCacheKey> {
26+
export interface CommandCacheRecord<K extends CommandCacheKey> {
2727
cmd: string;
2828
entries: Map<K, CommandCacheKeyOutputMap[K]>;
2929
}

0 commit comments

Comments
 (0)