From b994f6f35e29b2d93ff8ddc281a69c0af3cc3edf Mon Sep 17 00:00:00 2001 From: Tony Sullivan Date: Fri, 27 Jan 2023 11:00:24 -0600 Subject: [PATCH] Makes the `AstroCookies` type importable directly from "astro" (#6006) * re-exports the AstroCookie type from the main 'astro' types * chore: add changeset --- .changeset/modern-colts-fix.md | 5 +++++ packages/astro/src/@types/astro.ts | 1 + 2 files changed, 6 insertions(+) create mode 100644 .changeset/modern-colts-fix.md diff --git a/.changeset/modern-colts-fix.md b/.changeset/modern-colts-fix.md new file mode 100644 index 0000000000..437a858daa --- /dev/null +++ b/.changeset/modern-colts-fix.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Makes the `AstroCookies` type available as an import from the main "astro" package diff --git a/packages/astro/src/@types/astro.ts b/packages/astro/src/@types/astro.ts index 247b083060..c1c5f585ab 100644 --- a/packages/astro/src/@types/astro.ts +++ b/packages/astro/src/@types/astro.ts @@ -28,6 +28,7 @@ export type { ShikiConfig, } from '@astrojs/markdown-remark'; export type { SSRManifest } from '../core/app/types'; +export type { AstroCookies } from '../core/cookies'; export interface AstroBuiltinProps { 'client:load'?: boolean;