Skip to content

PopiiMigration

Popii


Popii / PopiiMigration

Defined in: migrations.ts:1

transform(content): string | Promise<string>

Defined in: migrations.ts:11

Receives the raw text of popii.config.ts and returns the modified text. Return the original string unchanged if this migration doesn’t apply. May be async for migrations that require user input.

string

string | Promise<string>

version: string

Defined in: migrations.ts:3

The popii version this migration targets. Runs when upgrading to this version or beyond.


description: string

Defined in: migrations.ts:5

Human-readable description shown in the console when applied.