Skip to content

Commit

Permalink
ci: add tests for Types constants
Browse files Browse the repository at this point in the history
  • Loading branch information
wellwelwel committed Jun 24, 2023
1 parent 04601dd commit 04eeb6a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/tsc-build/mysql/constants/Types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { mysql } from '../../index.js';

const BLOB: number = mysql.Types.BLOB;
const DECIMAL: string = mysql.Types[0x00];
const DOUBLE: string = mysql.Types[5];

console.log(BLOB, DECIMAL, DOUBLE);
7 changes: 7 additions & 0 deletions test/tsc-build/promise/constants/Types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { mysqlp as mysql } from '../../index.js';

const BLOB: number = mysql.Types.BLOB;
const DECIMAL: string = mysql.Types[0x00];
const DOUBLE: string = mysql.Types[5];

console.log(BLOB, DECIMAL, DOUBLE);

0 comments on commit 04eeb6a

Please sign in to comment.