| 14 | export const isClient = typeof window !== 'undefined' |
| 15 | |
| 16 | export interface OperationsType { |
| 17 | set<T extends object = Record<any, unknown>>( |
| 18 | target: T, |
| 19 | // accepts a dot delimited path |
| 20 | path: string | number, |
| 21 | value: T[any] |
| 22 | ): T[any] | T[any][] |
| 23 | add<T extends unknown = unknown>(array: T[], index: number, data: T): T[] |
| 24 | remove<T extends unknown = unknown>(array: T[], index: number): T[] |
| 25 | } |
| 26 | |
| 27 | /** |
| 28 | * Allow resetting a subscription vue ref when the source changes or is removed. `false` keeps the value as is while |
no outgoing calls
no test coverage detected