Skip to content

Commit

Permalink
change API types from class to interface
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Wickern <[email protected]>
  • Loading branch information
dwickern committed Nov 8, 2024
1 parent 3694c4d commit b83101b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lib/odbc.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
declare namespace odbc {

class ColumnDefinition {
interface ColumnDefinition {
name: string;
dataType: number;
dataTypeName: string;
Expand All @@ -9,25 +9,25 @@ declare namespace odbc {
nullable: boolean;
}

class Result<T> extends Array<T> {
interface Result<T> extends Array<T> {
count: number;
columns: Array<ColumnDefinition>;
statement: string;
parameters: Array<number|string>;
return: number;
}

class OdbcError {
interface OdbcError {
message: string;
code: number;
state: string;
}

class NodeOdbcError extends Error {
interface NodeOdbcError extends Error {
odbcErrors: Array<OdbcError>;
}

class Statement {
interface Statement {

////////////////////////////////////////////////////////////////////////////
// Callbacks ///////////////////////////////////////////////////////////
Expand Down Expand Up @@ -81,7 +81,7 @@ declare namespace odbc {
cursor: boolean|string
}

class Connection {
interface Connection {

////////////////////////////////////////////////////////////////////////////
// Callbacks ///////////////////////////////////////////////////////////
Expand Down Expand Up @@ -145,7 +145,7 @@ declare namespace odbc {
close(): Promise<void>;
}

class Pool {
interface Pool {

////////////////////////////////////////////////////////////////////////////
// Callbacks ///////////////////////////////////////////////////////////
Expand Down Expand Up @@ -173,7 +173,7 @@ declare namespace odbc {
close(): Promise<void>;
}

class Cursor {
interface Cursor {
noData: boolean

////////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit b83101b

Please sign in to comment.