mirror of
https://github.com/withastro/astro.git
synced 2025-02-17 22:44:24 -05:00
[ci] format
This commit is contained in:
parent
a65ffe314b
commit
ac72ed2f55
2 changed files with 4 additions and 4 deletions
|
@ -1,8 +1,8 @@
|
|||
import { z } from 'zod';
|
||||
import type { ErrorInferenceObject, MaybePromise, ActionAPIContext } from '../utils.js';
|
||||
import { ActionError, ActionInputError, type SafeResult, callSafely } from './shared.js';
|
||||
import { AstroError } from '../../../core/errors/errors.js';
|
||||
import { ActionCalledFromServerError } from '../../../core/errors/errors-data.js';
|
||||
import { AstroError } from '../../../core/errors/errors.js';
|
||||
import type { ActionAPIContext, ErrorInferenceObject, MaybePromise } from '../utils.js';
|
||||
import { ActionError, ActionInputError, type SafeResult, callSafely } from './shared.js';
|
||||
|
||||
export * from './shared.js';
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import { describe, it } from 'node:test';
|
||||
import { expectTypeOf } from 'expect-type';
|
||||
import type { APIContext } from '../../dist/@types/astro.js';
|
||||
import { type ActionReturnType, defineAction } from '../../dist/actions/runtime/virtual/server.js';
|
||||
import { z } from '../../zod.mjs';
|
||||
import type { APIContext } from '../../dist/@types/astro.js';
|
||||
|
||||
describe('Astro.callAction', () => {
|
||||
it('Infers JSON action result on callAction', async () => {
|
||||
|
|
Loading…
Add table
Reference in a new issue