Skip to content

⬅️ Back to Table of Contents

📄 reactiveOmit

📊 Analysis Summary

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

📚 Table of Contents

🛠️ File Location:

📂 packages/shared/reactiveOmit/index.ts

📦 Imports

Name Source
toRefs vue
toValue vue
reactiveComputed ../reactiveComputed

Functions

reactiveOmit(obj: T, keys: (K | K[])[]): ReactiveOmitReturn<T, K>

Parameters:

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

Returns: ReactiveOmitReturn<T, K>

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

Type Aliases

ReactiveOmitReturn<T extends object, K extends keyof T | undefined = undefined>

type ReactiveOmitReturn<T extends object, K extends keyof T | undefined = undefined> = [K] extends [undefined]
    ? Partial<T>
    : Omit<T, Extract<K, keyof T>>;

ReactiveOmitPredicate<T>

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

Generated by Syntax Scribe