createVersion(
args
: {from?
: {commit_id
:string
;hidden?
:LixGenerated
<undefined
|boolean
>;id
:LixGenerated
<string
>;inherits_from_version_id?
:null
|string
;name
:LixGenerated
<string
>;working_commit_id
:LixGenerated
<string
>; } |Pick
<{commit_id
:string
;hidden?
:LixGenerated
<undefined
|boolean
>;id
:LixGenerated
<string
>;inherits_from_version_id?
:null
|string
;name
:LixGenerated
<string
>;working_commit_id
:LixGenerated
<string
>; },"id"
>;id?
:LixGenerated
<string
>;inheritsFrom?
:null
| {commit_id
:string
;hidden?
:LixGenerated
<undefined
|boolean
>;id
:LixGenerated
<string
>;inherits_from_version_id?
:null
|string
;name
:LixGenerated
<string
>;working_commit_id
:LixGenerated
<string
>; } |Pick
<{commit_id
:string
;hidden?
:LixGenerated
<undefined
|boolean
>;id
:LixGenerated
<string
>;inherits_from_version_id?
:null
|string
;name
:LixGenerated
<string
>;working_commit_id
:LixGenerated
<string
>; },"id"
>;lix
:Lix
;name?
:LixGenerated
<string
>; }):Promise
<{commit_id
:string
;hidden?
:LixGenerated
<undefined
|boolean
>;id
:LixGenerated
<string
>;inherits_from_version_id?
:null
|string
;name
:LixGenerated
<string
>;working_commit_id
:LixGenerated
<string
>; }>
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? : { commit_id : string ; hidden? : LixGenerated <undefined | boolean >; id : LixGenerated <string >; inherits_from_version_id? : null | string ; name : LixGenerated <string >; working_commit_id : LixGenerated <string >; } | Pick <{ commit_id : string ; hidden? : LixGenerated <undefined | boolean >; id : LixGenerated <string >; inherits_from_version_id? : null | string ; name : LixGenerated <string >; working_commit_id : LixGenerated <string >; }, "id" >; id? : LixGenerated <string >; inheritsFrom? : null | { commit_id : string ; hidden? : LixGenerated <undefined | boolean >; id : LixGenerated <string >; inherits_from_version_id? : null | string ; name : LixGenerated <string >; working_commit_id : LixGenerated <string >; } | Pick <{ commit_id : string ; hidden? : LixGenerated <undefined | boolean >; id : LixGenerated <string >; inherits_from_version_id? : null | string ; name : LixGenerated <string >; working_commit_id : LixGenerated <string >; }, "id" >; lix : Lix ; name? : LixGenerated <string >; } |
args.from? | { commit_id : string ; hidden? : LixGenerated <undefined | boolean >; id : LixGenerated <string >; inherits_from_version_id? : null | string ; name : LixGenerated <string >; working_commit_id : LixGenerated <string >; } | Pick <{ commit_id : string ; hidden? : LixGenerated <undefined | boolean >; id : LixGenerated <string >; inherits_from_version_id? : null | string ; name : LixGenerated <string >; working_commit_id : LixGenerated <string >; }, "id" > |
args.id? | LixGenerated <string > |
args.inheritsFrom? | null | { commit_id : string ; hidden? : LixGenerated <undefined | boolean >; id : LixGenerated <string >; inherits_from_version_id? : null | string ; name : LixGenerated <string >; working_commit_id : LixGenerated <string >; } | Pick <{ commit_id : string ; hidden? : LixGenerated <undefined | boolean >; id : LixGenerated <string >; inherits_from_version_id? : null | string ; name : LixGenerated <string >; working_commit_id : LixGenerated <string >; }, "id" > |
args.lix | Lix |
args.name? | LixGenerated <string > |
Promise
<{ commit_id
: string
; hidden?
: LixGenerated
<undefined
| boolean
>; id
: LixGenerated
<string
>; inherits_from_version_id?
: null
| string
; name
: LixGenerated
<string
>; working_commit_id
: LixGenerated
<string
>; }>