-
-
Notifications
You must be signed in to change notification settings - Fork 621
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attribute "promise" does not exist on type "Connection" #1936
Comments
Even from |
Looks like #1949 should fix the issue |
Doesn't seem right. |
@tomoat, can you try it in version |
After version
I'm closing this Issue, but feel free to ask anything 🙋🏻♂️ |
Attribute "promise" does not exist on type "Connection"
import mysql from 'mysql2'
import util from 'util'
const conn = mysql.createConnection({
host: '127.0.0.1',
user: 'root',
password: '12345678',
port: 3306,
database: 'domain',
rowsAsArray: true,
})
const db = conn.promise() // This line reported an error
export { db }
The text was updated successfully, but these errors were encountered: