Hello all. Just upgraded to 1.0. All went well and...
# help
e
Hello all. Just upgraded to 1.0. All went well and is working but I have a type warning
Copy code
Index signature for type 'string' is missing in type '{}'.
on the environment line in the following statement (this refers to the stack)
Copy code
this.setDefaultFunctionProps({
      environment: config,
      bundle: {
        externalModules: ['pg-hstore'],
        nodeModules: ['mysql2']
      },
      timeout: 20,
    })
and config is declared as
Copy code
let config = {}
and has key/value pairs added to it before the setDefaultFunctionProps call. Any idea what I can do to get rid of that error ?
t
you're not using TS right?
e
No indeed I'm not
t
you can probably ignore this error - we are running ts checking on JS code for the 1.0 migration since it's tricky + easy to mess things up
f
@thdxr is it possible to loosen up the type checking rules in this case?
t
I looked this one up and I didn't see a setting for it