0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-27 22:19:04 -05:00

Actions: expose ActionAPIContext (#11812)

* feat: expose ActionAPIContext

* feat: expose ActionAPIContext
This commit is contained in:
Ben Holmes 2024-08-22 05:51:06 -04:00 committed by GitHub
parent 22ceb48302
commit 260c4be050
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 11 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
Exposes `ActionAPIContext` type from the `astro:actions` module.

View file

@ -1,8 +1,13 @@
import { parse as devalueParse, stringify as devalueStringify } from 'devalue'; import { parse as devalueParse, stringify as devalueStringify } from 'devalue';
import type { z } from 'zod'; import type { z } from 'zod';
import { ACTION_QUERY_PARAMS as _ACTION_QUERY_PARAMS } from '../../consts.js'; 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_QUERY_PARAMS = _ACTION_QUERY_PARAMS;
export const ACTION_ERROR_CODES = [ export const ACTION_ERROR_CODES = [