PopiiMigration
Popii / PopiiMigration
Interface: PopiiMigration
Section titled “Interface: PopiiMigration”Defined in: migrations.ts:1
Methods
Section titled “Methods”transform()
Section titled “transform()”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.
Parameters
Section titled “Parameters”content
Section titled “content”string
Returns
Section titled “Returns”string | Promise<string>
Properties
Section titled “Properties”version
Section titled “version”version:
string
Defined in: migrations.ts:3
The popii version this migration targets. Runs when upgrading to this version or beyond.
description
Section titled “description”description:
string
Defined in: migrations.ts:5
Human-readable description shown in the console when applied.