( props: any, excludedKeys: string[], )
| 493 | * @internal |
| 494 | */ |
| 495 | export function createPropsRestProxy( |
| 496 | props: any, |
| 497 | excludedKeys: string[], |
| 498 | ): Record<string, any> { |
| 499 | const ret: Record<string, any> = {} |
| 500 | for (const key in props) { |
| 501 | if (!excludedKeys.includes(key)) { |
| 502 | Object.defineProperty(ret, key, { |
| 503 | enumerable: true, |
| 504 | get: () => props[key], |
| 505 | }) |
| 506 | } |
| 507 | } |
| 508 | return ret |
| 509 | } |
| 510 | |
| 511 | /** |
| 512 | * `<script setup>` helper for persisting the current instance context over |
no outgoing calls
no test coverage detected