Skip to content
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.

Commit

Permalink
Pages Functions assets imports type (#234)
Browse files Browse the repository at this point in the history
  • Loading branch information
GregBrimble committed May 5, 2022
1 parent ceec72b commit 18ca7fc
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/tender-dodos-switch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@cloudflare/workers-types": minor
---

feat: Adds the Pages Functions asset imports type. More info on [our docs](https://developers.cloudflare.com/pages/platform/functions/plugins/).
4 changes: 4 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2013,3 +2013,7 @@ declare type PagesPluginFunction<
> = (
context: EventPluginContext<Env, Params, Data, PluginArgs>
) => Response | Promise<Response>;

declare module "assets:*" {
export const onRequest: PagesFunction;
}
4 changes: 4 additions & 0 deletions manual-ts/pages.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,7 @@ declare type PagesPluginFunction<
> = (
context: EventPluginContext<Env, Params, Data, PluginArgs>
) => Response | Promise<Response>;

declare module "assets:*" {
export const onRequest: PagesFunction;
}

0 comments on commit 18ca7fc

Please sign in to comment.