Skip to main content

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:38

Constructs a DraftChange use case wired to the default workspace.

Parameters​

config​

SpecdConfig

The fully-resolved project configuration

Returns​

DraftChange

The pre-wired use case instance

Call Signature​

createDraftChange(context, options): DraftChange

Defined in: packages/core/src/composition/use-cases/draft-change.ts:46

Constructs a DraftChange use case with explicit context and fs paths.

Parameters​

context​

DraftChangeContext

Workspace domain context

options​

FsDraftChangeOptions

Filesystem adapter paths

Returns​

DraftChange

The pre-wired use case instance