Function arrayProxy

  • Type Parameters

    • V
    • T extends V[]

    Parameters

    • target: T

    Returns {
        proxy: T;
        rx: Reactive<V[]> & {
            set(value: V[]): void;
        } & {
            deleteAt(index: number): void;
            deleteWhere(filter: ((value: V) => boolean)): number;
            insertAt(index: number, value: V): void;
            onArray(handler: ((changes: Passed<ChangeRecord<number>[]>) => void)): (() => void);
            push(value: V): void;
            setAt(index: number, value: V): void;
        } & Reactive<readonly V[]> & {
            last(): readonly V[];
        };
    }

    • proxy: T
    • rx: Reactive<V[]> & {
          set(value: V[]): void;
      } & {
          deleteAt(index: number): void;
          deleteWhere(filter: ((value: V) => boolean)): number;
          insertAt(index: number, value: V): void;
          onArray(handler: ((changes: Passed<ChangeRecord<number>[]>) => void)): (() => void);
          push(value: V): void;
          setAt(index: number, value: V): void;
      } & Reactive<readonly V[]> & {
          last(): readonly V[];
      }