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:
parent
22ceb48302
commit
260c4be050
2 changed files with 11 additions and 1 deletions
5
.changeset/poor-olives-battle.md
Normal file
5
.changeset/poor-olives-battle.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
'astro': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Exposes `ActionAPIContext` type from the `astro:actions` module.
|
|
@ -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 = [
|
||||||
|
|
Loading…
Add table
Reference in a new issue