type alias UnwrapRefTuple

Type utility to unwrap reference types from a tuple of references.

This type extracts the decoded types from an array of references, making it easier to work with computed references that depend on multiple other references.

Type Parameters

TTuple extends readonly RefValue<unknown>[]

A tuple of reference values

Definition

[K in keyof TTuple]: TTuple[K] extends RefValue<infer TDecoded> ? TDecoded : never

Usage

import { type UnwrapRefTuple } from "ref/ref.ts";