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

Pages Functions assets imports type #234

Merged
merged 1 commit into from
May 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
}