Opt-in zod scope helpers. zod is an optional peer.
The core (footprintjs, footprintjs/advanced) never imports zod, so a plain
install needs no zod and never crashes. The zod-based scope helpers live here.
Import them from 'footprintjs/zod' and add zod to your own dependencies:
import { defineScopeFromZod, defineScopeSchema } from 'footprintjs/zod';
(ZodScopeResolver is exported here too if you register it yourself via
registerScopeResolver from footprintjs/advanced.)
Opt-in zod scope helpers. zod is an optional peer.
The core (
footprintjs,footprintjs/advanced) never imports zod, so a plain install needs no zod and never crashes. The zod-based scope helpers live here. Import them from'footprintjs/zod'and addzodto your own dependencies:import { defineScopeFromZod, defineScopeSchema } from 'footprintjs/zod';
(
ZodScopeResolveris exported here too if you register it yourself viaregisterScopeResolverfromfootprintjs/advanced.)