Skip to content

descriptorOf

@tsed/core

Usage

typescript
import { descriptorOf } from "@tsed/core";

See /packages/core/src/utils/descriptorOf.ts.

Overview

ts
function descriptorOf(target: any, propertyKey: string | symbol): PropertyDescriptor;

Description

Retrieves the property descriptor for a given class and property key.

Checks both the target and its prototype for the property descriptor.

Released under the MIT License.