pk-annotator 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,18 @@
1
+ import { Plugin } from "vite";
2
+ import { z } from "zod";
3
+ //#region src/vite/index.d.ts
4
+ declare const AnnotatorOptions: z.ZodObject<{
5
+ bodies: z.ZodOptional<z.ZodArray<z.ZodString>>;
6
+ maxStoreBytes: z.ZodOptional<z.ZodNumber>;
7
+ storeRoot: z.ZodOptional<z.ZodString>;
8
+ }, z.core.$strict>;
9
+ type AnnotatorOptions = z.input<typeof AnnotatorOptions>;
10
+ /**
11
+ * The overlay reads `bodies` from this global. Vite's client sets every
12
+ * `define` key on globalThis in dev, so it reaches a pre-bundled overlay too.
13
+ */
14
+ export declare const BODIES_GLOBAL = "__PKA_BODIES__";
15
+ /** Dev-server plugins: source attributes, the overlay channel, symbolication, and the store watcher. Nothing runs in builds or under Vitest. */
16
+ export declare function annotator(options?: AnnotatorOptions): Plugin[];
17
+ //#endregion
18
+ export { AnnotatorOptions };