Skip to content

Commit 6b9c6fc

Browse files
chore(angular): improve types of platform.ts (#27810)
1 parent cd1102b commit 6b9c6fc

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

packages/angular/src/providers/platform.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
import { DOCUMENT } from '@angular/common';
2-
import { NgZone, Inject, Injectable } from '@angular/core';
2+
import { Inject, Injectable, NgZone } from '@angular/core';
33
import { BackButtonEventDetail, KeyboardEventDetail, Platforms, getPlatforms, isPlatform } from '@ionic/core';
4-
import { Subscription, Subject } from 'rxjs';
5-
6-
// TODO(FW-2827): types
4+
import { Subject, Subscription } from 'rxjs';
75

86
export interface BackButtonEmitter extends Subject<BackButtonEventDetail> {
97
subscribeWithPriority(
@@ -22,13 +20,13 @@ export class Platform {
2220
/**
2321
* @hidden
2422
*/
25-
backButton: BackButtonEmitter = new Subject<BackButtonEventDetail>() as any;
23+
backButton = new Subject<BackButtonEventDetail>() as BackButtonEmitter;
2624

2725
/**
2826
* The keyboardDidShow event emits when the
2927
* on-screen keyboard is presented.
3028
*/
31-
keyboardDidShow = new Subject<KeyboardEventDetail>() as any;
29+
keyboardDidShow = new Subject<KeyboardEventDetail>();
3230

3331
/**
3432
* The keyboardDidHide event emits when the

0 commit comments

Comments
 (0)