Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/websql

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/websql - npm Package Compare versions

Comparing version 0.0.27 to 0.0.28

websql/LICENSE

107

websql/index.d.ts

@@ -11,31 +11,44 @@ // Type definitions for websql

// uncomment to integrate with Window global object
interface Window extends WindowDatabase { }
interface WorkerUtils extends WorkerUtilsDatabase { }
interface Window extends WindowDatabase {}
interface WorkerUtils extends WorkerUtilsDatabase {}
// util interfaces
interface DOMString extends String { }
interface ObjectArray extends Array<any> { }
interface DOMString extends String {}
interface ObjectArray extends Array<any> {}
//[Supplemental, NoInterfaceObject]
// [Supplemental, NoInterfaceObject]
interface WindowDatabase {
openDatabase(name: DOMString, version: DOMString, displayName: DOMString, estimatedSize: number,
creationCallback?: DatabaseCallback): Database;
openDatabase(
name: DOMString,
version: DOMString,
displayName: DOMString,
estimatedSize: number,
creationCallback?: DatabaseCallback,
): Database;
}
//[Supplemental, NoInterfaceObject]
// [Supplemental, NoInterfaceObject]
interface WorkerUtilsDatabase {
openDatabase(name: DOMString, version: DOMString, displayName: DOMString, estimatedSize: number,
creationCallback?: DatabaseCallback): Database;
openDatabase(
name: DOMString,
version: DOMString,
displayName: DOMString,
estimatedSize: number,
creationCallback?: DatabaseCallback,
): Database;
openDatabaseSync(name: DOMString, version: DOMString, displayName: DOMString, estimatedSize: number,
creationCallback?: DatabaseCallback): DatabaseSync;
openDatabaseSync(
name: DOMString,
version: DOMString,
displayName: DOMString,
estimatedSize: number,
creationCallback?: DatabaseCallback,
): DatabaseSync;
}
//[Callback = FunctionOnly, NoInterfaceObject]
// [Callback = FunctionOnly, NoInterfaceObject]
interface DatabaseCallback {
/*handleEvent*/(database: Database): void;
/*handleEvent*/ (database: Database): void;
}
/** 4.3 Asynchronous database API - The transaction() and readTransaction() methods takes

@@ -49,9 +62,15 @@ * one to three arguments. When called, these methods must immediately return and then

interface Database {
/*readonly/const*/version: DOMString;
/*readonly/const*/ version: DOMString;
transaction(callback: SQLTransactionCallback, errorCallback?: SQLTransactionErrorCallback,
successCallback?: SQLVoidCallback): void;
transaction(
callback: SQLTransactionCallback,
errorCallback?: SQLTransactionErrorCallback,
successCallback?: SQLVoidCallback,
): void;
readTransaction(callback: SQLTransactionCallback, errorCallback?: SQLTransactionErrorCallback,
successCallback?: SQLVoidCallback): void;
readTransaction(
callback: SQLTransactionCallback,
errorCallback?: SQLTransactionErrorCallback,
successCallback?: SQLVoidCallback,
): void;

@@ -64,19 +83,24 @@ /** The changeVersion() method allows scripts to atomically verify the version number and change

*/
changeVersion(oldVersion: DOMString, newVersion: DOMString, callback?: SQLTransactionCallback,
errorCallback?: SQLTransactionErrorCallback, successCallback?: SQLVoidCallback): void;
changeVersion(
oldVersion: DOMString,
newVersion: DOMString,
callback?: SQLTransactionCallback,
errorCallback?: SQLTransactionErrorCallback,
successCallback?: SQLVoidCallback,
): void;
}
//[Callback = FunctionOnly, NoInterfaceObject]
// [Callback = FunctionOnly, NoInterfaceObject]
interface SQLVoidCallback {
/*handleEvent*/(): void;
/*handleEvent*/ (): void;
}
//[Callback = FunctionOnly, NoInterfaceObject]
// [Callback = FunctionOnly, NoInterfaceObject]
interface SQLTransactionCallback {
/*handleEvent*/(transaction: SQLTransaction): void;
/*handleEvent*/ (transaction: SQLTransaction): void;
}
//[Callback = FunctionOnly, NoInterfaceObject]
// [Callback = FunctionOnly, NoInterfaceObject]
interface SQLTransactionErrorCallback {
/*handleEvent*/(error: SQLError): void;
/*handleEvent*/ (error: SQLError): void;
}

@@ -87,21 +111,24 @@

interface SQLTransaction {
executeSql(sqlStatement: DOMString, arguments?: ObjectArray, callback?: SQLStatementCallback,
errorCallback?: SQLStatementErrorCallback): void;
executeSql(
sqlStatement: DOMString,
arguments?: ObjectArray,
callback?: SQLStatementCallback,
errorCallback?: SQLStatementErrorCallback,
): void;
}
//[Callback = FunctionOnly, NoInterfaceObject]
// [Callback = FunctionOnly, NoInterfaceObject]
interface SQLStatementCallback {
/*handleEvent*/(transaction: SQLTransaction, resultSet: SQLResultSet): void;
/*handleEvent*/ (transaction: SQLTransaction, resultSet: SQLResultSet): void;
}
//[Callback = FunctionOnly, NoInterfaceObject]
// [Callback = FunctionOnly, NoInterfaceObject]
interface SQLStatementErrorCallback {
/*handleEvent*/(transaction: SQLTransaction, error: SQLError): boolean;
/*handleEvent*/ (transaction: SQLTransaction, error: SQLError): boolean;
}
/** 4.4 Synchronous database API
*/
interface DatabaseSync {
/*readonly/const*/version: DOMString;
/*readonly/const*/ version: DOMString;

@@ -115,5 +142,5 @@ transaction(callback: SQLTransactionSyncCallback): void;

//[Callback = FunctionOnly, NoInterfaceObject]
// [Callback = FunctionOnly, NoInterfaceObject]
interface SQLTransactionSyncCallback {
/*handleEvent*/(transaction: SQLTransactionSync): void;
/*handleEvent*/ (transaction: SQLTransactionSync): void;
}

@@ -127,3 +154,2 @@

/** 4.5 Database query results

@@ -169,3 +195,2 @@ * The insertId attribute must return the row ID of the row that the SQLResultSet

/** 4.6 Errors and exceptions - asynchronous database API error

@@ -172,0 +197,0 @@ */

{
"name": "@types/websql",
"version": "0.0.27",
"version": "0.0.28",
"description": "TypeScript definitions for websql",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/websql",
"license": "MIT",
"author": "TeamworkGuy2 <https://github.com/TeamworkGuy2>",
"contributors": [
{
"name": "TeamworkGuy2",
"url": "https://github.com/TeamworkGuy2",
"githubUsername": "TeamworkGuy2"
}
],
"main": "",
"types": "index.d.ts",
"repository": {
"type": "git",
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
"directory": "types/websql"
},
"scripts": {},
"dependencies": {},
"typings": "index.d.ts",
"typesPublisherContentHash": "b5bd924a6558dc7121cbe87b0af8833c6add01a75af241a4dc5b2a59c7550af3"
"typesPublisherContentHash": "69d149fa7cf3c5823830eec44461990944e88412e28b72fc3853db362ab017a0",
"typeScriptVersion": "4.5"
}

@@ -8,12 +8,10 @@ # Installation

# Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/websql
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/websql.
Additional Details
* Last updated: Mon, 19 Sep 2016 17:28:59 GMT
* File structure: Global
* Library Dependencies: none
* Module Dependencies: none
* Global values: SQLError, SQLException
### Additional Details
* Last updated: Mon, 25 Sep 2023 13:39:07 GMT
* Dependencies: none
* Global values: `SQLError`, `SQLException`
# Credits
These definitions were written by TeamworkGuy2 <https://github.com/TeamworkGuy2>.
These definitions were written by [TeamworkGuy2](https://github.com/TeamworkGuy2).
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc