types / mysql Goto Github PK
View Code? Open in Web Editor NEWTypings for https://github.com/mysqljs/mysql
License: ISC License
Typings for https://github.com/mysqljs/mysql
License: ISC License
mysql2.18.0 has support localInfile
config item in Connection options
The callback "return" type depends on the kind of query passed (SELECT, UPDATE, ...)
Version 2.15.3
The following error occurs when attempting to use a type of Pool.
Error:(12, 42) TS2345: .
Types of property 'config' are incompatible.
Type 'PoolConfig' is not assignable to type 'PoolConfig'. Two different types with this name exist, but they are unrelated.
Types of property 'typeCast' are incompatible.
Type 'TypeCast' is not assignable to type 'TypeCast'. Two different types with this name exist, but they are unrelated.
Type '(field: FieldInfo & { type: string; length: number; string(): string; buffer(): Buffer; geometry(...' is not assignable to type 'TypeCast'.
Type '(field: FieldInfo & { type: string; length: number; string(): string; buffer(): Buffer; geometry(...' is not assignable to type '(field: FieldInfo & { type: string; length: number; string(): string; buffer(): Buffer; geometry(...'. Two different types with this name exist, but they are unrelated.
Types of parameters 'field' and 'field' are incompatible.
Type 'FieldInfo & { type: string; length: number; string(): string; buffer(): Buffer; geometry(): Geome...' is not assignable to type 'FieldInfo & { type: string; length: number; string(): string; buffer(): Buffer; geometry(): Geome...'. Two different types with this name exist, but they are unrelated.
Type 'FieldInfo & { type: string; length: number; string(): string; buffer(): Buffer; geometry(): Geome...' is not assignable to type 'FieldInfo'.
Types of property 'type' are incompatible.
Type '(Types.DECIMAL & string) | (Types.TINY & string) | (Types.SHORT & string) | (Types.LONG & string)...' is not assignable to type 'Types'.
Type 'Types.DECIMAL & string' is not assignable to type 'Types'.
Here is the snippet of code:
public constructor(pool: Pool) {
this._pool = pool;
this._gateway = new TableGateway(pool, 'users');
}
Here is the signature of TableGateway:
constructor(connectionPool: Pool, tableName: string, primaryKey?: string);
Downgrading to v2.15.2 fixes the issue.
TS version is 2.7.2
Branch | Build failing π¨ |
---|---|
Dependency | typescript |
Current Version | 2.4.0 |
Type | devDependency |
This version is covered by your current version range and after updating it in your project the build failed.
As typescript is βonlyβ a devDependency of this project it might not break production or downstream projects, but βonlyβ your build or test tools β preventing new deploys or publishes.
I recommend you give this issue a high priority. Iβm sure you can resolve this πͺ
For release notes, check out the release announcement
For new features, check out the What's new in TypeScript 2.4.
For breaking changes, check out the Breaking changes in TypeScript 2.4 page.
For the complete list of fixed issues, check out the fixed issues query for Typescript 2.4.
Download:
The new version differs by 141 commits.
8b2fe13
Update LKG.
14d95ed
Test:Block-scoped definition of Promise works
a8846bf
Skip block scope check with no error location
44f2336
Merge pull request #16633 from Microsoft/release-2.4_fixIncrementalParsing
4875a27
Add tests
15ef20d
Set the structureReused to be safemoudles when dynamic import change
6d33083
Add tests
11b9f6e
Wip-fix incremental parsing
2721fd4
In TypeScript code, never bind JSDoc normally, just set parent pointers (#16555) (#16561)
0968ed9
Revert string enum changes (#16569)
096f8cc
Update LKG
9241175
Allow running in strict mode (#16557)
f49b007
Update LKG
f1b0f59
Update version to 2.4.1
ed9cde9
Update LKG
There are 141 commits in total.
See the full diff
There is a collection of frequently asked questions and of course you may always ask my humans.
Your Greenkeeper Bot π΄
Branch | Build failing π¨ |
---|---|
Dependency | tslint |
Current Version | 5.4.3 |
Type | devDependency |
This version is covered by your current version range and after updating it in your project the build failed.
As tslint is βonlyβ a devDependency of this project it might not break production or downstream projects, but βonlyβ your build or test tools β preventing new deploys or publishes.
I recommend you give this issue a high priority. Iβm sure you can resolve this πͺ
Editor's note: This release features an important bugfix for overlapping fixes when using --project
and --fix
(#2864).
completed-docs
: Add enum-members
option (#2911)no-this-reassignment
(#2931)encoding
closes files correctly (#2958)whitespace
fix whitespace "check-module"
to properly lint and fix errors (#2401) (#2825)whitespace
: now correctly handles dynamic imports introduced in [email protected] (#2924)switch-final-break
: don't fail if break jumps to a label outside of the switch (#2914)no-shadowed-variable
: exempt this
parameter (#2598)prefer-for-of
correctly handles variable scopes and other unrelated identifiers (#2984)no-unused-variable
autofix removes whole import (#2901)-v
option (#2926)no-empty
(#2886)prefer-const
: handle destructuring in for-of loop initializer as if {"destructuring": "all"}
was specified (#2904)no-shadowed-variable
: added checks for other shadowing declarations, e.g. interfaces, classes, type parameters, imports, etc. (#2598)no-shadowed-variable
no longer fails for declarations in the same scope, e.g. var foo; var foo;
. Use the rule no-duplicate-variable
to find such errors. (#2598)Thanks to our contributors!
There is a collection of frequently asked questions and of course you may always ask my humans.
Your Greenkeeper Bot π΄
pool.releaseConnection is not a publicly documented function, as it is for internal usage.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.