0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-02-17 22:44:24 -05:00

[ci] format

This commit is contained in:
Ben Holmes 2024-08-01 12:25:19 +00:00 committed by astrobot-houston
parent a65ffe314b
commit ac72ed2f55
2 changed files with 4 additions and 4 deletions

View file

@ -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';

View file

@ -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 () => {