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

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

Emit every generated file for a contract.

**Signature:**

```typescript
export declare function emitAll(input: EmitAllOptions): Promise<string[]>;
```

## Parameters


| Parameter | Type | Description |
| --- | --- | --- |
| input | [EmitAllOptions](https://imqueue.org/api/pg-prisma/latest/pg-prisma.emitalloptions/) |  |


**Returns:**

Promise<string\[\]>

The paths written.

## Remarks

The three emitters and the barrel that ties them together, in one call, because writing them out separately is the same handful of lines in every consumer — and a consumer that forgets the barrel gets a build error rather than a hint.

Deliberately takes an `outDir` and no opinion about where a project keeps its contract or its generated code: those are the consumer's conventions, not this package's.

## Example


```typescript
await emitAll({
    contract,
    outDir: new URL('../src/generated/', import.meta.url),
    imports: parseImportMap('zod=@my-org/runtime'),
});
```

