Skip to content

Commit

Permalink
fix(ssg): allow app: Hono<any, any, any> for toSSG (#2272)
Browse files Browse the repository at this point in the history
* fix(ssg): allow `app: Hono<any, any, any>` for `toSSG`

* denoify
  • Loading branch information
yusukebe authored Feb 25, 2024
1 parent eee1dd4 commit a32482d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
9 changes: 3 additions & 6 deletions deno_dist/helper/ssg/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<E, S, BasePath>,
// eslint-disable-next-line @typescript-eslint/no-explicit-any
app: Hono<any, any, any>,
fsModule: FileSystemModule,
options?: ToSSGOptions
): Promise<ToSSGResult>
Expand Down
9 changes: 3 additions & 6 deletions src/helper/ssg/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<E, S, BasePath>,
// eslint-disable-next-line @typescript-eslint/no-explicit-any
app: Hono<any, any, any>,
fsModule: FileSystemModule,
options?: ToSSGOptions
): Promise<ToSSGResult>
Expand Down

0 comments on commit a32482d

Please sign in to comment.