GuardsFunction Guards
Check Method Descriptor
Checks if a property descriptor represents a method.
isMethodDescriptor
Import
import { isMethodDescriptor } from 'toolbox-x/guards';Specialized guard checking if a property descriptor represents a method (function-valued property). Useful for reflection and decorators.
Signature
function isMethodDescriptor(descriptor: Maybe<PropertyDescriptor>): descriptor is MethodDescriptorExamples
playground.ts
Alias
| Main Export | Alias Names |
|---|---|
isMethodDescriptor | isMethod |
Use Cases
- Property descriptor validation
- Decorator implementations
- Reflection-based code
- Runtime method checking
Last updated: Sun, May 31, 2026 05:04:16AM (UTC)
