Function: createDiscardChange()
Constructs a DiscardChange instance wired with filesystem adapters.
Param
A fully-resolved SpecdConfig or an explicit context object
Param
Filesystem path options; required when configOrContext is a context object
Call Signature
createDiscardChange(
config):DiscardChange
Defined in: packages/core/src/composition/use-cases/discard-change.ts:37
Constructs a DiscardChange use case wired to the default workspace.
Parameters
config
The fully-resolved project configuration
Returns
The pre-wired use case instance
Call Signature
createDiscardChange(
context,options):DiscardChange
Defined in: packages/core/src/composition/use-cases/discard-change.ts:45
Constructs a DiscardChange use case with explicit context and fs paths.
Parameters
context
Workspace domain context
options
Filesystem adapter paths
Returns
The pre-wired use case instance