site-panzai/node_modules/nuxt/dist/app/components/vfor.d.ts

16 lines
520 B
TypeScript
Raw Normal View History

2026-11-13 13:57:04 +01:00
/**
* Upper bound on `v-for` iterations expanded server-side in a server component or island.
* Island props are attacker-controllable, so a large numeric `v-for` source is a
* memory-amplification vector; this caps it.
*
* @internal
*/
export declare const MAX_VFOR_LENGTH = 10000;
/**
* Clamp a numeric `v-for` source before iteration. Only numbers are bounded (the
* amplification vector); other sources are returned unchanged.
*
* @internal
*/
export declare function vforBound<T>(source: T): T | number;