Skip to content

Commit

Permalink
adding multiple Petitions return
Browse files Browse the repository at this point in the history
  • Loading branch information
mimiMonads committed Nov 14, 2024
1 parent 167be7f commit 31efc71
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/morphism.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1247,7 +1247,7 @@ export type StaticFilePlugin<> = {
path: string;
o?: FunRouterOptions<any>;
relativeName: string;
}) => Petition;
}) => Petition | Petition[];
};

/**
Expand Down
2 changes: 1 addition & 1 deletion src/staticFiles/composedPaths.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default (o?: FunRouterOptions<any>) =>
(name: string) =>
(root: string) =>
(paths: string[]) =>
(mimes: [string, string][]): Petition[] =>
(mimes: [string, string][]): Petition[] | Petition[] =>
mimes.length > 0
? (
f.template !== undefined && f.template && f.template.length > 0
Expand Down
2 changes: 1 addition & 1 deletion src/staticFiles/staticFileMain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ export default (o?: FunRouterOptions<any>) =>
maybeOfFiles ?? staticFileTools.getDir(staticFileTools.rectify(f.path)),
)(
staticFileTools.mimeForm(f),
),
).flat(),
);

0 comments on commit 31efc71

Please sign in to comment.