[**@bondsports/general**](../README.md) • **Docs**

***

[@bondsports/general](../globals.md) / getClassAttributes

# Function: getClassAttributes()

> **getClassAttributes**\<`T`\>(`classType`): `string`[]

Retrieves the attributes of a class instance.

## Type Parameters

• **T**

The type of the class.

## Parameters

• **classType**

The constructor function of the class.

## Returns

`string`[]

An array of attribute names.

## Hazard

Dtos should not be used as classType ⚠️.

## Defined in

[utils/general.util.ts:139](https://github.com/Bond-Sports/bondUtils/blob/545f16ceb055481acfd7641d7809c0f252d3a5e6/packages/general/src/utils/general.util.ts#L139)
