createVersion(
args
: {from?
:LixVersion
|Pick
<LixVersion
,"id"
>;id?
:string
& {__lixGenerated?
:true
; };inheritsFrom?
:null
|LixVersion
|Pick
<LixVersion
,"id"
>;lix
:Lix
;name?
:LixGenerated
<string
>; }):Promise
<LixVersion
>
Creates a new version branching from a version's commit id (defaults to active when from
is omitted).
For branching from a specific commit id, use createVersionFromCommit
.
Parameter | Type |
---|---|
args | { from? : LixVersion | Pick <LixVersion , "id" >; id? : string & { __lixGenerated? : true ; }; inheritsFrom? : null | LixVersion | Pick <LixVersion , "id" >; lix : Lix ; name? : LixGenerated <string >; } |
args.from? | LixVersion | Pick <LixVersion , "id" > |
args.id? | string & { __lixGenerated? : true ; } |
args.inheritsFrom? | null | LixVersion | Pick <LixVersion , "id" > |
args.lix | Lix |
args.name? | LixGenerated <string > |
Promise
<LixVersion
>