From a32482ddb0d8c9b75310c28750389a1819be6618 Mon Sep 17 00:00:00 2001 From: Yusuke Wada Date: Mon, 26 Feb 2024 00:45:35 +0900 Subject: [PATCH] fix(ssg): allow `app: Hono` for `toSSG` (#2272) * fix(ssg): allow `app: Hono` for `toSSG` * denoify --- deno_dist/helper/ssg/index.ts | 9 +++------ src/helper/ssg/index.ts | 9 +++------ 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/deno_dist/helper/ssg/index.ts b/deno_dist/helper/ssg/index.ts index badf094cb..7828d3a8e 100644 --- a/deno_dist/helper/ssg/index.ts +++ b/deno_dist/helper/ssg/index.ts @@ -215,13 +215,10 @@ export const saveContentToFiles = async ( * `ToSSGInterface` is an experimental feature. * The API might be changed. */ -export interface ToSSGInterface< - E extends Env = Env, - S extends Schema = {}, - BasePath extends string = '/' -> { +export interface ToSSGInterface { ( - app: Hono, + // eslint-disable-next-line @typescript-eslint/no-explicit-any + app: Hono, fsModule: FileSystemModule, options?: ToSSGOptions ): Promise diff --git a/src/helper/ssg/index.ts b/src/helper/ssg/index.ts index 7cde6d905..a047d44bc 100644 --- a/src/helper/ssg/index.ts +++ b/src/helper/ssg/index.ts @@ -215,13 +215,10 @@ export const saveContentToFiles = async ( * `ToSSGInterface` is an experimental feature. * The API might be changed. */ -export interface ToSSGInterface< - E extends Env = Env, - S extends Schema = {}, - BasePath extends string = '/' -> { +export interface ToSSGInterface { ( - app: Hono, + // eslint-disable-next-line @typescript-eslint/no-explicit-any + app: Hono, fsModule: FileSystemModule, options?: ToSSGOptions ): Promise