Skip to content

toStringConstructor

@tsed/core

Usage

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

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

Overview

ts
function toStringConstructor(target: any): string;
  • target (any): Instance or constructor.

Description

Returns the textual signature of a class/instance constructor.

Example output: constructor(id: string, name?: string). Useful for debugging and documentation generation.

Released under the MIT License.