mirror of
https://github.com/github/codeql-action.git
synced 2026-10-28 16:47:16 +00:00
Replace string with CommandCacheKey for better type safety
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user