Squash merge rely-on-nostrmarket-to-publish into main

This commit is contained in:
padreug 2025-10-08 09:19:07 +02:00
parent 08b172ab34
commit c90def94a7
23 changed files with 1739 additions and 239 deletions

View file

@ -0,0 +1,10 @@
import type { Updater } from "@tanstack/vue-table"
import type { Ref } from "vue"
import { isFunction } from "@tanstack/vue-table"
export function valueUpdater<T>(updaterOrValue: Updater<T>, ref: Ref<T>) {
ref.value = isFunction(updaterOrValue)
? updaterOrValue(ref.value)
: updaterOrValue
}