rc-js-util
Version:
A collection of TS and C++ utilities to help writing performant and correct applications, achieved through strict typing and (removable) invariant checking.
64 lines (30 loc) • 761 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [rc-js-util](./rc-js-util.md) > [\_Debug](./rc-js-util._debug.md) > [labelBlock](./rc-js-util._debug.labelblock.md)
## \_Debug.labelBlock() method
**Signature:**
```typescript
static labelBlock<T>(this: void, label: string | undefined): (callback: () => T) => T;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
this
</td><td>
void
</td><td>
</td></tr>
<tr><td>
label
</td><td>
string \| undefined
</td><td>
</td></tr>
</tbody></table>
**Returns:**
(callback: () => T) => T