diff --git a/test/tsc-build/mysql/constants/Types.ts b/test/tsc-build/mysql/constants/Types.ts new file mode 100644 index 0000000000..30f231a796 --- /dev/null +++ b/test/tsc-build/mysql/constants/Types.ts @@ -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); diff --git a/test/tsc-build/promise/constants/Types.ts b/test/tsc-build/promise/constants/Types.ts new file mode 100644 index 0000000000..565ed3883e --- /dev/null +++ b/test/tsc-build/promise/constants/Types.ts @@ -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);