📄 createUnrefFn¶
📊 Analysis Summary¶
| Metric | Count |
|---|---|
| 🔧 Functions | 1 |
| 📦 Imports | 2 |
| 📑 Type Aliases | 1 |
📚 Table of Contents¶
🛠️ File Location:¶
📂 packages/core/createUnrefFn/index.ts
📦 Imports¶
| Name | Source |
|---|---|
MaybeRef |
vue |
toValue |
vue |
Functions¶
createUnrefFn(fn: T): UnrefFn<T>¶
Make a plain function accepting ref and raw values as arguments. Returns the same value the unconverted function returns, with proper typing.
Tags: @__NO_SIDE_EFFECTS__
Raw JSDoc
Calls:
fn.applyargs.maptoValue (from vue)
Code
Type Aliases¶
UnrefFn<T>¶
type UnrefFn<T> = T extends (...args: infer A) => infer R
? (...args: { [K in keyof A]: MaybeRef<A[K]> }) => R
: never;
Generated by Syntax Scribe