Fix setTimeout/setInterval typing
This commit is contained in:
parent
9b7697c530
commit
a645cebb49
11 changed files with 13 additions and 13 deletions
|
@ -154,7 +154,7 @@ export default class CallHandler extends EventEmitter {
|
||||||
private supportsPstnProtocol = null;
|
private supportsPstnProtocol = null;
|
||||||
private pstnSupportPrefixed = null; // True if the server only support the prefixed pstn protocol
|
private pstnSupportPrefixed = null; // True if the server only support the prefixed pstn protocol
|
||||||
private supportsSipNativeVirtual = null; // im.vector.protocol.sip_virtual and im.vector.protocol.sip_native
|
private supportsSipNativeVirtual = null; // im.vector.protocol.sip_virtual and im.vector.protocol.sip_native
|
||||||
private pstnSupportCheckTimer: NodeJS.Timeout; // number actually because we're in the browser
|
private pstnSupportCheckTimer: number;
|
||||||
// For rooms we've been invited to, true if they're from virtual user, false if we've checked and they aren't.
|
// For rooms we've been invited to, true if they're from virtual user, false if we've checked and they aren't.
|
||||||
private invitedRoomsAreVirtual = new Map<string, boolean>();
|
private invitedRoomsAreVirtual = new Map<string, boolean>();
|
||||||
private invitedRoomCheckInProgress = false;
|
private invitedRoomCheckInProgress = false;
|
||||||
|
|
|
@ -364,8 +364,8 @@ export default class CountlyAnalytics {
|
||||||
|
|
||||||
private initTime = CountlyAnalytics.getTimestamp();
|
private initTime = CountlyAnalytics.getTimestamp();
|
||||||
private firstPage = true;
|
private firstPage = true;
|
||||||
private heartbeatIntervalId: NodeJS.Timeout;
|
private heartbeatIntervalId: number;
|
||||||
private activityIntervalId: NodeJS.Timeout;
|
private activityIntervalId: number;
|
||||||
private trackTime = true;
|
private trackTime = true;
|
||||||
private lastBeat: number;
|
private lastBeat: number;
|
||||||
private storedDuration = 0;
|
private storedDuration = 0;
|
||||||
|
|
|
@ -46,8 +46,8 @@ export class DecryptionFailureTracker {
|
||||||
};
|
};
|
||||||
|
|
||||||
// Set to an interval ID when `start` is called
|
// Set to an interval ID when `start` is called
|
||||||
public checkInterval: NodeJS.Timeout = null;
|
public checkInterval: number = null;
|
||||||
public trackInterval: NodeJS.Timeout = null;
|
public trackInterval: number = null;
|
||||||
|
|
||||||
// Spread the load on `Analytics` by tracking at a low frequency, `TRACK_INTERVAL_MS`.
|
// Spread the load on `Analytics` by tracking at a low frequency, `TRACK_INTERVAL_MS`.
|
||||||
static TRACK_INTERVAL_MS = 60000;
|
static TRACK_INTERVAL_MS = 60000;
|
||||||
|
|
|
@ -251,7 +251,7 @@ export default class MatrixChat extends React.PureComponent<IProps, IState> {
|
||||||
private pageChanging: boolean;
|
private pageChanging: boolean;
|
||||||
private tokenLogin?: boolean;
|
private tokenLogin?: boolean;
|
||||||
private accountPassword?: string;
|
private accountPassword?: string;
|
||||||
private accountPasswordTimer?: NodeJS.Timeout;
|
private accountPasswordTimer?: number;
|
||||||
private focusComposer: boolean;
|
private focusComposer: boolean;
|
||||||
private subTitleStatus: string;
|
private subTitleStatus: string;
|
||||||
private prevWindowWidth: number;
|
private prevWindowWidth: number;
|
||||||
|
|
|
@ -78,7 +78,7 @@ export default class RoomDirectory extends React.Component<IProps, IState> {
|
||||||
private readonly startTime: number;
|
private readonly startTime: number;
|
||||||
private unmounted = false;
|
private unmounted = false;
|
||||||
private nextBatch: string = null;
|
private nextBatch: string = null;
|
||||||
private filterTimeout: NodeJS.Timeout;
|
private filterTimeout: number;
|
||||||
private protocols: Protocols;
|
private protocols: Protocols;
|
||||||
|
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
|
|
|
@ -187,7 +187,7 @@ export default class ScrollPanel extends React.Component<IProps> {
|
||||||
private fillRequestWhileRunning: boolean;
|
private fillRequestWhileRunning: boolean;
|
||||||
private scrollState: IScrollState;
|
private scrollState: IScrollState;
|
||||||
private preventShrinkingState: IPreventShrinkingState;
|
private preventShrinkingState: IPreventShrinkingState;
|
||||||
private unfillDebouncer: NodeJS.Timeout;
|
private unfillDebouncer: number;
|
||||||
private bottomGrowth: number;
|
private bottomGrowth: number;
|
||||||
private pages: number;
|
private pages: number;
|
||||||
private heightUpdateInProgress: boolean;
|
private heightUpdateInProgress: boolean;
|
||||||
|
|
|
@ -370,7 +370,7 @@ export default class InviteDialog extends React.PureComponent<IInviteDialogProps
|
||||||
};
|
};
|
||||||
|
|
||||||
private closeCopiedTooltip: () => void;
|
private closeCopiedTooltip: () => void;
|
||||||
private debounceTimer: NodeJS.Timeout = null; // actually number because we're in the browser
|
private debounceTimer: number = null; // actually number because we're in the browser
|
||||||
private editorRef = createRef<HTMLInputElement>();
|
private editorRef = createRef<HTMLInputElement>();
|
||||||
private unmounted = false;
|
private unmounted = false;
|
||||||
|
|
||||||
|
|
|
@ -55,7 +55,7 @@ interface IState {
|
||||||
export default class Autocomplete extends React.PureComponent<IProps, IState> {
|
export default class Autocomplete extends React.PureComponent<IProps, IState> {
|
||||||
autocompleter: Autocompleter;
|
autocompleter: Autocompleter;
|
||||||
queryRequested: string;
|
queryRequested: string;
|
||||||
debounceCompletionsRequest: NodeJS.Timeout;
|
debounceCompletionsRequest: number;
|
||||||
private containerRef = createRef<HTMLDivElement>();
|
private containerRef = createRef<HTMLDivElement>();
|
||||||
|
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
|
|
|
@ -75,7 +75,7 @@ interface IState extends IThemeState {
|
||||||
export default class AppearanceUserSettingsTab extends React.Component<IProps, IState> {
|
export default class AppearanceUserSettingsTab extends React.Component<IProps, IState> {
|
||||||
private readonly MESSAGE_PREVIEW_TEXT = _t("Hey you. You're the best!");
|
private readonly MESSAGE_PREVIEW_TEXT = _t("Hey you. You're the best!");
|
||||||
|
|
||||||
private themeTimer: NodeJS.Timeout;
|
private themeTimer: number;
|
||||||
|
|
||||||
constructor(props: IProps) {
|
constructor(props: IProps) {
|
||||||
super(props);
|
super(props);
|
||||||
|
|
|
@ -44,7 +44,7 @@ interface IState {
|
||||||
|
|
||||||
@replaceableComponent("views.toasts.VerificationRequestToast")
|
@replaceableComponent("views.toasts.VerificationRequestToast")
|
||||||
export default class VerificationRequestToast extends React.PureComponent<IProps, IState> {
|
export default class VerificationRequestToast extends React.PureComponent<IProps, IState> {
|
||||||
private intervalHandle: NodeJS.Timeout;
|
private intervalHandle: number;
|
||||||
|
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
super(props);
|
super(props);
|
||||||
|
|
|
@ -26,7 +26,7 @@ Once a timer is finished or aborted, it can't be started again
|
||||||
a new one through `clone()` or `cloneIfRun()`.
|
a new one through `clone()` or `cloneIfRun()`.
|
||||||
*/
|
*/
|
||||||
export default class Timer {
|
export default class Timer {
|
||||||
private timerHandle: NodeJS.Timeout;
|
private timerHandle: number;
|
||||||
private startTs: number;
|
private startTs: number;
|
||||||
private promise: Promise<void>;
|
private promise: Promise<void>;
|
||||||
private resolve: () => void;
|
private resolve: () => void;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue