diff --git a/.changeset/poor-olives-battle.md b/.changeset/poor-olives-battle.md new file mode 100644 index 000000000000..1a89449c8903 --- /dev/null +++ b/.changeset/poor-olives-battle.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Exposes `ActionAPIContext` type from the `astro:actions` module. diff --git a/packages/astro/src/actions/runtime/virtual/shared.ts b/packages/astro/src/actions/runtime/virtual/shared.ts index d792a9af55af..64d56d13a9aa 100644 --- a/packages/astro/src/actions/runtime/virtual/shared.ts +++ b/packages/astro/src/actions/runtime/virtual/shared.ts @@ -1,8 +1,13 @@ import { parse as devalueParse, stringify as devalueStringify } from 'devalue'; import type { z } from 'zod'; import { ACTION_QUERY_PARAMS as _ACTION_QUERY_PARAMS } from '../../consts.js'; -import type { ErrorInferenceObject, MaybePromise } from '../utils.js'; +import type { + ErrorInferenceObject, + MaybePromise, + ActionAPIContext as _ActionAPIContext, +} from '../utils.js'; +export type ActionAPIContext = _ActionAPIContext; export const ACTION_QUERY_PARAMS = _ACTION_QUERY_PARAMS; export const ACTION_ERROR_CODES = [