capacitor-community / sqlite

Community plugin for native & electron SQLite databases
MIT License
426 stars 104 forks source link

The run method returns the wrong type #506

Closed playaz87 closed 4 months ago

playaz87 commented 4 months ago

run() returns the type:

interface capSQLiteChanges {
  changes?: Changes;
}

interface Changes {
  changes?: number;
  lastId?: number;
  values?: any[];
}

However the actual returned data is of type Changes

jepiqueau commented 4 months ago

@playaz87 on which platform?

jepiqueau commented 4 months ago

@playaz87 After checking all platform i do not see it is the case

playaz87 commented 4 months ago

@jepiqueau

I appologise. I checked again and it seems to be correct. I'm sure it wasn't working yesterday as I had to override the return type. I must have been tired... again I appologise for wasting your time.