Skip to content

Type Alias: IrArg<T> ​

IrArg<T> = T extends string | number | boolean | null ? T : T extends readonly unknown[] ? { [K in keyof T]: IrArg<Exclude<T[K], undefined>> } : T extends object ? { [K in keyof T]: K extends "data" | "cover" ? IrArg<Exclude<T[K], undefined>> | AssetRef : IrArg<Exclude<T[K], undefined>> } : never

A write-API value as the IR holds it. An optional key or argument is absent rather than undefined, as IrValue requires, and a data or cover key, where the write API takes bytes, may hold an AssetRef.

Type Parameters ​

Type Parameter
T