mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-06 01:25:38 -05:00
strict null checks azure (#11928)
* strict null checks azure * strict compilation * Fix compilation issues * Return empty arrays instead
This commit is contained in:
18
src/sql/azdata.d.ts
vendored
18
src/sql/azdata.d.ts
vendored
@@ -297,10 +297,10 @@ declare module 'azdata' {
|
||||
nodePath: string;
|
||||
nodeType: string;
|
||||
nodeSubType: string;
|
||||
nodeStatus: string;
|
||||
nodeStatus?: string;
|
||||
label: string;
|
||||
isLeaf: boolean;
|
||||
metadata: ObjectMetadata;
|
||||
metadata?: ObjectMetadata;
|
||||
errorMessage: string;
|
||||
/**
|
||||
* Optional iconType for the object in the tree. Currently this only supports
|
||||
@@ -320,7 +320,7 @@ declare module 'azdata' {
|
||||
}
|
||||
|
||||
export interface IConnectionProfile extends ConnectionInfo {
|
||||
connectionName: string;
|
||||
connectionName?: string;
|
||||
serverName: string;
|
||||
databaseName: string;
|
||||
userName: string;
|
||||
@@ -427,11 +427,11 @@ declare module 'azdata' {
|
||||
/**
|
||||
* The major version of the instance.
|
||||
*/
|
||||
serverMajorVersion: number;
|
||||
serverMajorVersion?: number;
|
||||
/**
|
||||
* The minor version of the instance.
|
||||
*/
|
||||
serverMinorVersion: number;
|
||||
serverMinorVersion?: number;
|
||||
/**
|
||||
* The build of the instance.
|
||||
*/
|
||||
@@ -1231,7 +1231,7 @@ declare module 'azdata' {
|
||||
sessionId: string;
|
||||
nodePath: string;
|
||||
nodes: NodeInfo[];
|
||||
errorMessage: string;
|
||||
errorMessage?: string;
|
||||
}
|
||||
|
||||
export interface ExpandNodeInfo {
|
||||
@@ -1249,7 +1249,7 @@ declare module 'azdata' {
|
||||
}
|
||||
|
||||
export interface ObjectExplorerCloseSessionInfo {
|
||||
sessionId: string;
|
||||
sessionId?: string;
|
||||
}
|
||||
|
||||
export interface ObjectExplorerCloseSessionResponse {
|
||||
@@ -4130,7 +4130,7 @@ declare module 'azdata' {
|
||||
* Note that the connection is not guaranteed to be in a connected
|
||||
* state on click.
|
||||
*/
|
||||
connectionProfile: IConnectionProfile;
|
||||
connectionProfile?: IConnectionProfile;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -4149,7 +4149,7 @@ declare module 'azdata' {
|
||||
* Node info for objects below a specific connection. This
|
||||
* may be null for a Connection-level object
|
||||
*/
|
||||
nodeInfo: NodeInfo;
|
||||
nodeInfo?: NodeInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user