File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed
Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 11import EventEmitter from "wolfy87-eventemitter" ;
22import postRobot from "post-robot" ;
3- import { IFieldInitData , IFieldModifierLocationInitData } from "./types" ;
3+ import { IFieldInitData , IFieldModifierLocationInitData , Indexable } from "./types" ;
44import { GenericObjectType } from "./types/common.types" ;
55import { Schema } from "./types/stack.types" ;
66
@@ -86,7 +86,7 @@ class Field {
8686 ? fieldObj . schema . $uid
8787 : fieldObj . uid ;
8888 const path = schemaPath . split ( "." ) ;
89- let value : GenericObjectType = new Map ( Object . entries ( event . data ) ) ;
89+ let value : Indexable = new Map ( Object . entries ( event . data ) ) ;
9090
9191 path . forEach ( ( key ) => {
9292 if ( value ) {
Original file line number Diff line number Diff line change 11import EventEmitter from "wolfy87-eventemitter" ;
22import postRobot from "post-robot" ;
33
4- import { IFieldInitData , IFieldModifierLocationInitData } from "../types" ;
4+ import { IFieldInitData , IFieldModifierLocationInitData , Indexable } from "../types" ;
55import { GenericObjectType } from "../types/common.types" ;
66import { Schema } from "../types/stack.types" ;
77
@@ -90,7 +90,7 @@ class FieldModifierLocationField {
9090 ? fieldObj . schema . $uid
9191 : fieldObj . uid ;
9292 const path = schemaPath . split ( "." ) ;
93- let value : GenericObjectType = new Map ( Object . entries ( event . data ) ) ;
93+ let value : Indexable = new Map ( Object . entries ( event . data ) ) ;
9494
9595 path . forEach ( ( key ) => {
9696 if ( value ) {
Original file line number Diff line number Diff line change @@ -234,3 +234,7 @@ export enum Region {
234234 AZURE_EU = "AZURE_EU" ,
235235 GCP_NA = "GCP_NA" ,
236236}
237+
238+ export declare interface Indexable {
239+ [ key : string ] : any ;
240+ }
You can’t perform that action at this time.
0 commit comments