-
-
Notifications
You must be signed in to change notification settings - Fork 625
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: missing typings for
Types
constant
- Loading branch information
1 parent
7f35cf5
commit 04601dd
Showing
3 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/** | ||
* Constant `Types`. | ||
* | ||
* Please note that `Types` can only be accessed from the `mysql` object and not imported directly. | ||
*/ | ||
declare const Types: { | ||
[key: number]: string; | ||
DECIMAL: 0x00; | ||
TINY: 0x01; | ||
SHORT: 0x02; | ||
LONG: 0x03; | ||
FLOAT: 0x04; | ||
DOUBLE: 0x05; | ||
NULL: 0x06; | ||
TIMESTAMP: 0x07; | ||
LONGLONG: 0x08; | ||
INT24: 0x09; | ||
DATE: 0x0a; | ||
TIME: 0x0b; | ||
DATETIME: 0x0c; | ||
YEAR: 0x0d; | ||
NEWDATE: 0x0e; | ||
VARCHAR: 0x0f; | ||
BIT: 0x10; | ||
JSON: 0xf5; | ||
NEWDECIMAL: 0xf6; | ||
ENUM: 0xf7; | ||
SET: 0xf8; | ||
TINY_BLOB: 0xf9; | ||
MEDIUM_BLOB: 0xfa; | ||
LONG_BLOB: 0xfb; | ||
BLOB: 0xfc; | ||
VAR_STRING: 0xfd; | ||
STRING: 0xfe; | ||
GEOMETRY: 0xff; | ||
}; | ||
|
||
export { Types }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import { Types } from './Types.js'; | ||
|
||
export { Types }; |