Skip to content

Commit

Permalink
fix(radio): added "Ctor" type
Browse files Browse the repository at this point in the history
  • Loading branch information
pimenovoleg committed Sep 26, 2018
1 parent f27765b commit af66572
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
5 changes: 3 additions & 2 deletions src/lib/list/list-selection.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import {
McLineSetter,
CanDisable,
mixinDisabled,
toBoolean
toBoolean, CanDisableCtor
} from '@ptsecurity/mosaic/core';


Expand Down Expand Up @@ -217,7 +217,8 @@ export class McListSelectionChange {

export class McListSelectionBase {}

export const _McListSelectionMixinBase = mixinDisabled(McListSelectionBase);
export const _McListSelectionMixinBase: CanDisableCtor & typeof McListSelectionBase
= mixinDisabled(McListSelectionBase);

@Component({
exportAs: 'mcListSelection',
Expand Down
4 changes: 2 additions & 2 deletions src/lib/navbar/navbar.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
import { FocusMonitor, FocusOrigin } from '@ptsecurity/cdk/a11y';
import { SPACE } from '@ptsecurity/cdk/keycodes';
import { Platform } from '@ptsecurity/cdk/platform';
import { CanDisable, mixinDisabled } from '@ptsecurity/mosaic/core';
import {CanDisable, CanDisableCtor, mixinDisabled} from '@ptsecurity/mosaic/core';


const COLLAPSED_CLASS: string = 'mc-navbar-collapsed-title';
Expand Down Expand Up @@ -66,7 +66,7 @@ export class McNavbarItemBase {
constructor(public _elementRef: ElementRef) {}
}

export const _McNavbarMixinBase = mixinDisabled(McNavbarItemBase);
export const _McNavbarMixinBase: CanDisableCtor & typeof McNavbarItemBase = mixinDisabled(McNavbarItemBase);

@Component({
selector: MC_NAVBAR_ITEM,
Expand Down
4 changes: 2 additions & 2 deletions src/lib/radio/radio.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { UniqueSelectionDispatcher } from '@ptsecurity/cdk/collections';

import {
CanColor, CanColorCtor,
CanDisable,
CanDisable, CanDisableCtor,
HasTabIndex, HasTabIndexCtor,
mixinColor,
mixinDisabled,
Expand All @@ -37,7 +37,7 @@ export class McRadioChange {
// Boilerplate for applying mixins to McRadioGroup.
/** @docs-private */
export class McRadioGroupBase {}
export const _McRadioGroupMixinBase = mixinDisabled(McRadioGroupBase);
export const _McRadioGroupMixinBase: CanDisableCtor & typeof McRadioGroupBase = mixinDisabled(McRadioGroupBase);

/**
* Provider Expression that allows mc-radio-group to register as a ControlValueAccessor. This
Expand Down

0 comments on commit af66572

Please sign in to comment.