WP Kernel API / @wpkernel/cli / AdapterExtensionContext
Interface: AdapterExtensionContext
Execution context provided to adapter extensions.
Extends
Properties
config
ts
config: KernelConfigV1;
Inherited from
reporter
ts
reporter: Reporter;
Inherited from
namespace
ts
namespace: string;
Inherited from
ir
ts
ir: IRv1;
Overrides
outputDir
ts
outputDir: string;
configDirectory?
ts
optional configDirectory: string;
tempDir
ts
tempDir: string;
queueFile()
ts
queueFile: (filePath, contents) => Promise<void>;
Parameters
filePath
string
contents
string
Returns
Promise
<void
>
updateIr()
ts
updateIr: (nextIr) => void;
Parameters
nextIr
Returns
void
formatPhp()
ts
formatPhp: (filePath, contents) => Promise<string>;
Parameters
filePath
string
contents
string
Returns
Promise
<string
>
formatTs()
ts
formatTs: (filePath, contents) => Promise<string>;
Parameters
filePath
string
contents
string
Returns
Promise
<string
>