File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -119,9 +119,9 @@ export class Type<_T> {
119119 /** @internal */
120120 static PASTER = new Type < IPaster < ICopyData , ICopyable < ICopyData > > > ( 'paster' ) ;
121121
122- static VARIABLE_MODEL = new Type < IVariableModelStatic < IVariableState > > (
123- 'variableModel' ,
124- ) ;
122+ static VARIABLE_MODEL = new Type <
123+ IVariableModelStatic < IVariableState > & IVariableModel < IVariableState >
124+ > ( 'variableModel' ) ;
125125
126126 static VARIABLE_MAP = new Type < IVariableMap < IVariableModel < IVariableState > > > (
127127 'variableMap' ,
Original file line number Diff line number Diff line change @@ -255,9 +255,9 @@ export class VariableMap
255255 }
256256 const id = opt_id || idGenerator . genUid ( ) ;
257257 const type = opt_type || '' ;
258- const VariableModel = registry . getObject (
258+ const VariableModel = registry . getClassFromOptions (
259259 registry . Type . VARIABLE_MODEL ,
260- registry . DEFAULT ,
260+ this . workspace . options ,
261261 true ,
262262 ) ;
263263 if ( ! VariableModel ) {
You can’t perform that action at this time.
0 commit comments