@wpkernel/cli / AdapterExtensionContext
Interface: AdapterExtensionContext<TConfigSurface, TIr>
Execution context provided to adapter extensions.
Extends
AdapterContext<TConfigSurface,TIr>
Type Parameters
TConfigSurface
TConfigSurface = unknown
TIr
TIr = unknown
Properties
config
ts
config: TConfigSurface;Inherited from
formatPhp()
ts
formatPhp: (filePath, contents) => MaybePromise<string>;Parameters
filePath
string
contents
string
Returns
MaybePromise<string>
formatTs()
ts
formatTs: (filePath, contents) => Promise<string>;Parameters
filePath
string
contents
string
Returns
Promise<string>
namespace
ts
namespace: string;Inherited from
outputDir
ts
outputDir: string;queueFile()
ts
queueFile: (filePath, contents) => Promise<void>;Parameters
filePath
string
contents
string
Returns
Promise<void>
reporter
ts
reporter: Reporter;Inherited from
tempDir
ts
tempDir: string;updateIr()
ts
updateIr: (ir) => void;Parameters
ir
TIr
Returns
void
configDirectory?
ts
optional configDirectory: string;ir?
ts
optional ir: TIr;