From f7d1bf2879cb63fa49056da210ea80ba6110c89a Mon Sep 17 00:00:00 2001 From: ppenelon Date: Fri, 18 Jan 2019 17:15:46 +0000 Subject: [PATCH] GenerateFunc : allow object for id argument --- types/catbox/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/catbox/index.d.ts b/types/catbox/index.d.ts index 62b99ac5b3..32fbdf6f3f 100644 --- a/types/catbox/index.d.ts +++ b/types/catbox/index.d.ts @@ -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 = (id: string, flags: GenerateFuncFlags) => Promise; +export type GenerateFunc = (id: Id, flags: GenerateFuncFlags) => Promise; /** * An object with logging information about the generation operation containing the following keys (as relevant):