Skip to content

Commit

Permalink
Update index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
bobslavtriev authored Jul 8, 2024
1 parent 7e035ca commit 2f65b05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Mysql/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ async function connection(config: MySQLConfig, force: boolean = false){
return conn
}

export const useMySQLAuthState = async(config: MySQLConfig): Promise<{ state: AuthenticationState, saveCreds: () => Promise<void>, clear: () => Promise<void>, removeCreds: () => Promise<void> }> => {
export const useMySQLAuthState = async(config: MySQLConfig): Promise<{ state: AuthenticationState, saveCreds: () => Promise<void>, clear: () => Promise<void>, removeCreds: () => Promise<void>, query: (sql: string, values: string[]) => Promise<sqlData> }> => {
const sqlConn = await connection(config)

const tableName = config.tableName || 'auth'
Expand Down Expand Up @@ -143,7 +143,7 @@ export const useMySQLAuthState = async(config: MySQLConfig): Promise<{ state: Au
removeCreds: async () => {
await removeAll()
},
query: async (sql, values) => {
query: async (sql: string, values: string[]) => {
return await query(sql, values)
}
}
Expand Down

0 comments on commit 2f65b05

Please sign in to comment.