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

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

Emit the enum constants for a contract.

**Signature:**

```typescript
export declare function emitEnums(input: Omit<EmitModelsOptions, 'imports'>): string;
```

## Parameters


| Parameter | Type | Description |
| --- | --- | --- |
| input | Omit<[EmitModelsOptions](https://imqueue.org/api/pg-prisma/latest/pg-prisma.emitmodelsoptions/), 'imports'> |  |


**Returns:**

string

The file content.

## Remarks

Prisma 7 exposed each enum as an `as const` object on the generated client, and `conventions.md`'s no-bare-strings rule leans on it: a member is written as `CredentialType.PASSWORD`, never as `'PASSWORD'`. Prisma Next carries the members in the contract but publishes no such object, so it is emitted here — otherwise every call site that named a member would have to restate the literal, which is the drift that rule exists to prevent.

