UsesHandle
Type in Authoring
A declarator handle accepted by module({ uses }): anything that carries its own declaration or binding.
import type { UsesHandle } from 'typeshade'
The signature, the description and the examples come from the compiler's own source at commit 26de7be8.
Syntax
type UsesHandle = | { readonly struct: StructDecl; readonly binding: BindingDecl } | { readonly decl: StructDecl | ConstDecl } | { readonly binding: BindingDecl; readonly elementDecl?: StructDecl };Description
uniformStruct returns { struct, binding };
ioStruct, structDecl and constDecl return { decl };
storageBuffer returns { binding } plus an elementDecl for a struct element;
resource returns { binding }.
See also
Source
src/core/ir/builder.ts, line 1094, at commit 26de7be8