Skip to content

⬅️ Back to Table of Contents

📄 reactivePick

📊 Analysis Summary

Metric Count
🔧 Functions 1
📦 Imports 5
📑 Type Aliases 2

📚 Table of Contents

🛠️ File Location:

📂 packages/shared/reactivePick/index.ts

📦 Imports

Name Source
UnwrapRef vue
toRefs vue
toValue vue
reactiveComputed ../reactiveComputed
toRef ../toRef

Functions

reactivePick(obj: T, keys: (K | K[])[]): ReactivePickReturn<T, K>

Parameters:

  • obj T
  • keys (K | K[])[]

Returns: ReactivePickReturn<T, K>

Code
export function reactivePick<T extends object, K extends keyof T>(
  obj: T,
  ...keys: (K | K[])[]
): ReactivePickReturn<T, K>

Type Aliases

ReactivePickReturn<T extends object, K extends keyof T>

type ReactivePickReturn<T extends object, K extends keyof T> = { [S in K]: UnwrapRef<T[S]> };

ReactivePickPredicate<T>

type ReactivePickPredicate<T> = (value: T[keyof T], key: keyof T) => boolean;

Generated by Syntax Scribe