fix: MaybePromise type

This commit is contained in:
kaj
2023-09-19 13:29:06 -08:00
parent 0d55a99dd5
commit 2a4f81a5df
+1 -1
View File
@@ -194,7 +194,7 @@ export type Plugin<P extends PluginTypeHelper = PluginTypeHelperDefault> = {
/** If you want to provide a list of resolutions in pixels to choose from, you can return them via this function and they will be presented as a slider in the UI */
getStableDiffusionAllowedResolutions?: (
model?: ID
) => { width: number; height: number }[] | undefined;
) => MaybePromise<{ width: number; height: number }[] | undefined>;
/** Determines the default count passed to `createStableDiffusionImages` */
getStableDiffusionDefaultCount?: () => number | undefined;