Skip to content

Commit

Permalink
Actions: expose ActionAPIContext (#11812)
Browse files Browse the repository at this point in the history
* feat: expose ActionAPIContext

* feat: expose ActionAPIContext
  • Loading branch information
bholmesdev committed Aug 22, 2024
1 parent 22ceb48 commit 260c4be
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/poor-olives-battle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': patch
---

Exposes `ActionAPIContext` type from the `astro:actions` module.
7 changes: 6 additions & 1 deletion packages/astro/src/actions/runtime/virtual/shared.ts
Original file line number Diff line number Diff line change
@@ -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 = [
Expand Down

0 comments on commit 260c4be

Please sign in to comment.