Skip to content

types are broken #3086

Open
Open
@boost3000

Description

@boost3000

i use mysql2 like this:

require('dotenv').config({path: __dirname + '/.env'});
const mysql = require('mysql2/promise');

module.exports = mysql.createPool({
"host": process.env.DB_HOST,
"user": process.env.DB_USER,
"port": parseInt(process.env.NODE_ENV === 'production' ? process.env.DB_PORT_PROD : process.env.DB_PORT_DEV),
"password": process.env.DB_PASSWORD,
"waitForConnections": process.env.DB_WAIT_FOR_CONNECTIONS === 'true',
"connectionLimit": parseInt(process.env.DB_CONNECTION_LIMIT),
"queueLimit": parseInt(process.env.DB_QUEUE_LIMIT),
"dateStrings": [
"DATE",
"DATETIME"
],
maxPreparedStatements: 100,
jsonStrings: true
});

and require it in another file. type hints are not working at all in phpstorm

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions