jeremydaly / serverless-mysql

A module for managing MySQL connections at SERVERLESS scale
MIT License
1.2k stars 82 forks source link

'library' field type in config should be an object, not a function #112

Open smashercosmo opened 3 years ago

smashercosmo commented 3 years ago

Currently 'library' field in config is of type Function https://github.com/jeremydaly/serverless-mysql/blob/master/index.d.ts#L11 But it should be an object with with two properties 'createConnection' and 'escape'