@@ -36,7 +36,7 @@ export function update_pre_prop(fn, d = 1) {
36
36
/**
37
37
* The proxy handler for rest props (i.e. `const { x, ...rest } = $props()`).
38
38
* Is passed the full `$$props` object and excludes the named props.
39
- * @type {ProxyHandler<{ props: Record<string | symbol, unknown>, exclude: Array<string | symbol>, name: string }> }}
39
+ * @type {ProxyHandler<{ props: Record<string | symbol, unknown>, exclude: Array<string | symbol>, name? : string }> }}
40
40
*/
41
41
const rest_props_handler = {
42
42
get ( target , key ) {
@@ -71,12 +71,12 @@ const rest_props_handler = {
71
71
72
72
/**
73
73
* @param {Record<string, unknown> } props
74
- * @param {string[] } rest
74
+ * @param {string[] } exclude
75
75
* @param {string } [name]
76
76
* @returns {Record<string, unknown> }
77
77
*/
78
- export function rest_props ( props , rest , name ) {
79
- return new Proxy ( { props, exclude : rest , name } , rest_props_handler ) ;
78
+ export function rest_props ( props , exclude , name ) {
79
+ return new Proxy ( DEV ? { props, exclude, name } : { props , exclude } , rest_props_handler ) ;
80
80
}
81
81
82
82
/**
0 commit comments