# typeOf() function · @imqueue/pg-prisma

Source: https://imqueue.org/api/pg-prisma/latest/pg-prisma.typeof/
Published: 2026-08-28
Author: @imqueue maintainers (https://github.com/imqueue)
Package: @imqueue/pg-prisma 2.0.0 — generated reference, not hand-written

The TypeScript spelling of a field, and the `@property` type string.

**Signature:**

```typescript
export declare function typeOf(field: Field, enums: Record<string, EnumDef>, listEnum?: string): {
    ts: string;
    wire: string;
};
```

## Parameters


| Parameter | Type | Description |
| --- | --- | --- |
| field | [Field](https://imqueue.org/api/pg-prisma/latest/pg-prisma.field/) |  |
| enums | Record<string, [EnumDef](https://imqueue.org/api/pg-prisma/latest/pg-prisma.enumdef/)> |  |
| listEnum | string | _(Optional)_ |


**Returns:**

{ ts: string; wire: string; }

