# DependentType type · @imqueue/type-graphql-dependency

Source: https://imqueue.org/api/type-graphql-dependency/latest/type-graphql-dependency.dependenttype/
Published: 2026-07-31
Author: @imqueue maintainers (https://github.com/imqueue)
Package: @imqueue/type-graphql-dependency 3.0.3 — generated reference, not hand-written

The class a requirement points at, named through a thunk.

**Signature:**

```typescript
export type DependentType = Function | Function[];
```

## Remarks

A bare class and a single-element array behave identically — only the first element is read, and only for its name. The array form is a readability convention for "many of these", matching how the relation's target field is typed; whether one object or a list is attached is decided by that field's own GraphQL type, not by this.

