diff --git a/packages/astro/src/actions/runtime/virtual/server.ts b/packages/astro/src/actions/runtime/virtual/server.ts index d0f70c40ffc3..94a993f04102 100644 --- a/packages/astro/src/actions/runtime/virtual/server.ts +++ b/packages/astro/src/actions/runtime/virtual/server.ts @@ -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'; diff --git a/packages/astro/test/types/call-action.ts b/packages/astro/test/types/call-action.ts index 9a74802fc888..644619132ded 100644 --- a/packages/astro/test/types/call-action.ts +++ b/packages/astro/test/types/call-action.ts @@ -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 () => {