Function: createDraftChange()
Constructs a DraftChange 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
createDraftChange(
config):DraftChange
Defined in: packages/core/src/composition/use-cases/draft-change.ts:37
Constructs a DraftChange use case wired to the default workspace.
Parameters
config
The fully-resolved project configuration
Returns
The pre-wired use case instance
Call Signature
createDraftChange(
context,options):DraftChange
Defined in: packages/core/src/composition/use-cases/draft-change.ts:45
Constructs a DraftChange use case with explicit context and fs paths.
Parameters
context
Workspace domain context
options
Filesystem adapter paths
Returns
The pre-wired use case instance