mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 19:07:08 +00:00
[azdata] Add definitions for Azure Data Studio Extension API (#41632)
* Initial commit * Remove unneeded rule overrides * Update owner URL * Use user URLs instead of repo URL * Undo line length changes
This commit is contained in:
parent
c3ca7ec691
commit
0716b93bc9
16
types/azdata/azdata-tests.ts
Normal file
16
types/azdata/azdata-tests.ts
Normal file
@ -0,0 +1,16 @@
|
||||
import * as azdata from 'azdata';
|
||||
|
||||
azdata.dataprotocol.registerConnectionProvider({
|
||||
providerId: 'MyProvider',
|
||||
connect(connectionUri: string, connectionInfo: azdata.ConnectionInfo): Thenable<boolean> { return Promise.resolve(true); },
|
||||
disconnect(connectionUri: string): Thenable<boolean> { return Promise.resolve(true); },
|
||||
cancelConnect(connectionUri: string): Thenable<boolean> { return Promise.resolve(true); },
|
||||
listDatabases(connectionUri: string): Thenable<azdata.ListDatabasesResult> { return Promise.resolve({ databaseNames: [] }); },
|
||||
changeDatabase(connectionUri: string, newDatabase: string): Thenable<boolean> { return Promise.resolve(true); },
|
||||
rebuildIntelliSenseCache(connectionUri: string): Thenable<void> { return Promise.resolve(); },
|
||||
getConnectionString(connectionUri: string, includePassword: boolean): Thenable<string> { return Promise.resolve(''); },
|
||||
buildConnectionInfo(connectionString: string): Thenable<azdata.ConnectionInfo> { return Promise.resolve({ options: {} }); },
|
||||
registerOnConnectionComplete(handler: (connSummary: azdata.ConnectionInfoSummary) => any): void { },
|
||||
registerOnIntelliSenseCacheComplete(handler: (connectionUri: string) => any): void { },
|
||||
registerOnConnectionChanged(handler: (changedConnInfo: azdata.ChangedConnectionInfo) => any): void { }
|
||||
});
|
||||
5252
types/azdata/index.d.ts
vendored
Normal file
5252
types/azdata/index.d.ts
vendored
Normal file
File diff suppressed because it is too large
Load Diff
16
types/azdata/tsconfig.json
Normal file
16
types/azdata/tsconfig.json
Normal file
@ -0,0 +1,16 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": ["es6"],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": ["../"],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": ["index.d.ts", "azdata-tests.ts"]
|
||||
}
|
||||
23
types/azdata/tslint.json
Normal file
23
types/azdata/tslint.json
Normal file
@ -0,0 +1,23 @@
|
||||
{
|
||||
"extends": "dtslint/dt.json",
|
||||
"rules": {
|
||||
"array-type": false,
|
||||
"comment-format": false,
|
||||
"interface-name": false,
|
||||
"interface-over-type-literal": false,
|
||||
"jsdoc-format": false,
|
||||
"max-line-length": false,
|
||||
"member-access": false,
|
||||
"npm-naming": false,
|
||||
"no-consecutive-blank-lines": false,
|
||||
"no-declare-current-package": false,
|
||||
"no-empty-interface": false,
|
||||
"no-mergeable-namespace": false,
|
||||
"no-padding": false,
|
||||
"no-redundant-jsdoc-2": false,
|
||||
"no-single-declare-module": false,
|
||||
"no-unnecessary-generics": false,
|
||||
"no-unnecessary-qualifier": false,
|
||||
"strict-export-declare-modifiers": false
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user