Replace string with CommandCacheKey for better type safety

This commit is contained in:
Mario Campos
2026-06-19 14:47:05 -05:00
parent 420c97eadd
commit dd7ff30205
4 changed files with 40 additions and 24 deletions

View File

@@ -548,7 +548,7 @@ export async function getCodeQLForTesting(
* @param validate Optional type guard for values loaded from the temporary file.
*/
async function getCachedOrRun<T>(
key: string,
key: CommandCacheKey,
cmd: string,
run: () => Promise<T>,
validate?: (output: unknown) => output is T,