Merge pull request #32293 from ppenelon/patch-1

@types/catbox: Allow object for id argument for generateFunc method
This commit is contained in:
Daniel Rosenwasser
2019-01-18 16:47:33 -08:00
committed by GitHub
+1 -1
View File
@@ -249,7 +249,7 @@ export interface GenerateFuncFlags {
* * ttl - the cache ttl value in milliseconds. Set to 0 to skip storing in the cache. Defaults to the cache global policy.
* @see {@link https://github.com/hapijs/catbox#policy}
*/
export type GenerateFunc<T> = (id: string, flags: GenerateFuncFlags) => Promise<T>;
export type GenerateFunc<T> = (id: Id, flags: GenerateFuncFlags) => Promise<T>;
/**
* An object with logging information about the generation operation containing the following keys (as relevant):