Skip to content

Commit

Permalink
Added types to parameter type
Browse files Browse the repository at this point in the history
  • Loading branch information
halvardssm committed Apr 21, 2024
1 parent 64a7d2f commit 1dfba2b
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion lib/packets/parsers/result.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,17 @@ import type { BufferReader } from "../../utils/buffer.ts";
import { MysqlDataType } from "../../constant/mysql_types.ts";
import type { ArrayRow, Row, SqlxQueryOptions } from "@halvardm/sqlx";

export type MysqlParameterType = string | number | bigint | Date | null;
export type MysqlParameterType =
| null
| string
| number
| boolean
| bigint
| Date
// deno-lint-ignore no-explicit-any
| Array<any>
| object
| undefined;

/**
* Field information
Expand Down

0 comments on commit 1dfba2b

Please sign in to comment.