Skip to content

getConstructorArgNames

@tsed/core

Usage

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

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

Overview

ts
function getConstructorArgNames(target: any): string[];

Description

Extracts constructor parameter names from a class constructor.

Parses the constructor's string representation to retrieve parameter names. Returns an array of trimmed, non-empty parameter names.

Released under the MIT License.