mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-09 17:52:34 -05:00
Fix a bunch of strict issues (#11857)
* fix a bunch of strict issues * fix tests * fix tests
This commit is contained in:
@@ -107,7 +107,7 @@ export class PanelComponent extends Disposable implements IThemable {
|
||||
private _actionbar?: ActionBar;
|
||||
private _mru: TabComponent[] = [];
|
||||
private _tabExpanded: boolean = true;
|
||||
private _styleElement: HTMLStyleElement;
|
||||
private _styleElement!: HTMLStyleElement;
|
||||
|
||||
protected AutoScrollbarVisibility = ScrollbarVisibility.Auto; // used by angular template
|
||||
protected HiddenScrollbarVisibility = ScrollbarVisibility.Hidden; // used by angular template
|
||||
@@ -266,7 +266,7 @@ export class PanelComponent extends Disposable implements IThemable {
|
||||
public updateTab(tabId: string, config: { title?: string, iconClass?: string }): void {
|
||||
// First find the tab and update it with the new values. Then manually refresh the
|
||||
// tab header since it won't detect changes made to the corresponding tab by itself.
|
||||
let tabHeader: TabHeaderComponent;
|
||||
let tabHeader: TabHeaderComponent | undefined;
|
||||
const tabHeaders = this._tabHeaders.toArray();
|
||||
const tab = this._tabs.find((item, i) => {
|
||||
if (item.identifier === tabId) {
|
||||
|
||||
@@ -25,7 +25,7 @@ export type TabType = 'tab' | 'group-header';
|
||||
export class TabComponent implements OnDestroy {
|
||||
private _child?: TabChild;
|
||||
@ContentChild(TemplateRef) templateRef!: TemplateRef<any>;
|
||||
@Input() public title!: string;
|
||||
@Input() public title?: string;
|
||||
@Input() public canClose!: boolean;
|
||||
@Input() public actions?: Array<Action>;
|
||||
@Input() public iconClass?: string;
|
||||
|
||||
Reference in New Issue
Block a user