0.7.24 - Upgrade typescript
This commit is contained in:
@@ -36,7 +36,7 @@ import Timer = NodeJS.Timer;
|
||||
export class Bot
|
||||
{
|
||||
private loginParams: LoginParameters;
|
||||
private ping: Timer | null = null;
|
||||
private ping: NodeJS.Timeout | null = null;
|
||||
private pingNumber = 0;
|
||||
private lastSuccessfulPing = 0;
|
||||
private circuitSubscription: Subscription | null = null;
|
||||
|
||||
@@ -29,7 +29,6 @@ import { BulkUpdateInventoryMessage } from './messages/BulkUpdateInventory';
|
||||
import { InventoryItem } from './InventoryItem';
|
||||
import { AgentDataUpdateMessage } from './messages/AgentDataUpdate';
|
||||
import { InventoryLibrary } from '../enums/InventoryLibrary';
|
||||
import Timer = NodeJS.Timer;
|
||||
|
||||
export class Agent
|
||||
{
|
||||
@@ -47,7 +46,7 @@ export class Agent
|
||||
hasVoice: boolean;
|
||||
isModerator: boolean
|
||||
}>,
|
||||
timeout?: Timer
|
||||
timeout?: NodeJS.Timeout
|
||||
}>();
|
||||
controlFlags: ControlFlags = 0;
|
||||
openID: {
|
||||
@@ -90,7 +89,7 @@ export class Agent
|
||||
attachments: Wearable[];
|
||||
serialNumber: number
|
||||
};
|
||||
agentUpdateTimer: Timer | null = null;
|
||||
agentUpdateTimer: NodeJS.Timeout | null = null;
|
||||
estateManager = false;
|
||||
|
||||
appearanceComplete = false;
|
||||
|
||||
@@ -22,8 +22,6 @@ import { Utils } from './Utils';
|
||||
|
||||
import * as Long from 'long';
|
||||
|
||||
import Timer = NodeJS.Timer;
|
||||
|
||||
export class Circuit
|
||||
{
|
||||
secureSessionID: UUID;
|
||||
@@ -39,12 +37,12 @@ export class Circuit
|
||||
awaitingAck: {
|
||||
[key: number]: {
|
||||
packet: Packet,
|
||||
timeout: Timer,
|
||||
timeout: NodeJS.Timeout,
|
||||
sent: number
|
||||
}
|
||||
} = {};
|
||||
receivedPackets: {
|
||||
[key: number]: Timer
|
||||
[key: number]: NodeJS.Timeout
|
||||
} = {};
|
||||
active = false;
|
||||
|
||||
@@ -179,7 +177,7 @@ export class Circuit
|
||||
return new Promise<Buffer>((resolve, reject) =>
|
||||
{
|
||||
let subscription: null | Subscription = null;
|
||||
let timeout: Timer | null = null;
|
||||
let timeout: NodeJS.Timeout | null = null;
|
||||
const receivedChunks: { [key: number]: Buffer } = {};
|
||||
const resetTimeout = function(): void
|
||||
{
|
||||
@@ -326,7 +324,7 @@ export class Circuit
|
||||
return new Promise<void>((resolve, reject) =>
|
||||
{
|
||||
const handleObj: {
|
||||
timeout: Timer | null,
|
||||
timeout: NodeJS.Timeout | null,
|
||||
subscription: Subscription | null
|
||||
} = {
|
||||
timeout: null,
|
||||
@@ -416,7 +414,7 @@ export class Circuit
|
||||
return new Promise<T>((resolve, reject) =>
|
||||
{
|
||||
const handleObj: {
|
||||
timeout: Timer | null,
|
||||
timeout: NodeJS.Timeout | null,
|
||||
subscription: Subscription | null
|
||||
} = {
|
||||
timeout: null,
|
||||
|
||||
@@ -41,7 +41,6 @@ import { LLSDNotationParser } from './llsd/LLSDNotationParser';
|
||||
import { LLSDMap } from './llsd/LLSDMap';
|
||||
import { LLGLTFMaterialOverride, LLGLTFTextureTransformOverride } from './LLGLTFMaterialOverride';
|
||||
import * as Long from 'long';
|
||||
import Timer = NodeJS.Timer;
|
||||
|
||||
export class ObjectStoreLite implements IObjectStore
|
||||
{
|
||||
@@ -88,7 +87,7 @@ export class ObjectStoreLite implements IObjectStore
|
||||
}>;
|
||||
private physicsSubscription: Subscription;
|
||||
private selectedPrimsWithoutUpdate = new Map<number, boolean>();
|
||||
private selectedChecker?: Timer;
|
||||
private selectedChecker?: NodeJS.Timeout;
|
||||
private blacklist: Map<number, Date> = new Map<number, Date>();
|
||||
private pendingResolves: Set<number> = new Set<number>();
|
||||
|
||||
|
||||
@@ -38,7 +38,6 @@ import { ParcelOverlayMessage } from './messages/ParcelOverlay';
|
||||
import { ILandBlock } from './interfaces/ILandBlock';
|
||||
import { LandFlags } from '../enums/LandFlags';
|
||||
import { ParcelPropertiesRequestMessage } from './messages/ParcelPropertiesRequest';
|
||||
import Timer = NodeJS.Timer;
|
||||
import { UUID } from './UUID';
|
||||
import { RegionFlags } from '../enums/RegionFlags';
|
||||
import { BotOptionFlags } from '../enums/BotOptionFlags';
|
||||
@@ -1089,7 +1088,7 @@ export class Region
|
||||
}
|
||||
else
|
||||
{
|
||||
let timeout: Timer | null = null;
|
||||
let timeout: NodeJS.Timeout | null = null;
|
||||
const subscription = this.parcelOverlayCompleteEvent.subscribe(() =>
|
||||
{
|
||||
if (timeout !== null)
|
||||
@@ -1118,7 +1117,7 @@ export class Region
|
||||
}
|
||||
else
|
||||
{
|
||||
let timeout: Timer | null = null;
|
||||
let timeout: NodeJS.Timeout | null = null;
|
||||
const subscription = this.parcelsCompleteEvent.subscribe(() =>
|
||||
{
|
||||
if (timeout !== null)
|
||||
@@ -1147,7 +1146,7 @@ export class Region
|
||||
}
|
||||
else
|
||||
{
|
||||
let timeout: Timer | null = null;
|
||||
let timeout: NodeJS.Timeout | null = null;
|
||||
const subscription = this.terrainCompleteEvent.subscribe(() =>
|
||||
{
|
||||
if (timeout !== null)
|
||||
|
||||
@@ -17,7 +17,6 @@ import { Utils } from '../Utils';
|
||||
import { UUID } from '../UUID';
|
||||
import { Vector3 } from '../Vector3';
|
||||
import { CommandsBase } from './CommandsBase';
|
||||
import Timer = NodeJS.Timer;
|
||||
|
||||
export class CommunicationsCommands extends CommandsBase
|
||||
{
|
||||
@@ -284,7 +283,7 @@ export class CommunicationsCommands extends CommandsBase
|
||||
{
|
||||
to = new UUID(to);
|
||||
}
|
||||
let typeTimer: Timer | null = null;
|
||||
let typeTimer: NodeJS.Timeout | null = null;
|
||||
this.startTypingIM(to).then(() =>
|
||||
{
|
||||
typeTimer = setInterval(() =>
|
||||
|
||||
@@ -33,8 +33,6 @@ import { Vector3 } from '../Vector3';
|
||||
import { CommandsBase } from './CommandsBase';
|
||||
import Timeout = NodeJS.Timeout;
|
||||
|
||||
import Timer = NodeJS.Timer;
|
||||
|
||||
export interface GetObjectsOptions
|
||||
{
|
||||
resolve?: boolean;
|
||||
@@ -436,7 +434,7 @@ export class RegionCommands extends CommandsBase
|
||||
{
|
||||
return new Promise<GameObject>((resolve, reject) =>
|
||||
{
|
||||
let tmr: Timer | null = null;
|
||||
let tmr: NodeJS.Timeout | null = null;
|
||||
const subscription = this.currentRegion.clientEvents.onNewObjectEvent.subscribe(async(event: NewObjectEvent) =>
|
||||
{
|
||||
if (event.localID === localID)
|
||||
@@ -461,7 +459,7 @@ export class RegionCommands extends CommandsBase
|
||||
{
|
||||
return new Promise<GameObject>((resolve, reject) =>
|
||||
{
|
||||
let tmr: Timer | null = null;
|
||||
let tmr: NodeJS.Timeout | null = null;
|
||||
const subscription = this.currentRegion.clientEvents.onNewObjectEvent.subscribe(async(event: NewObjectEvent) =>
|
||||
{
|
||||
if (event.objectID.equals(objectID))
|
||||
|
||||
@@ -4,8 +4,6 @@ import { Vector3 } from '../Vector3';
|
||||
import { Quaternion } from '../Quaternion';
|
||||
import { Subject, Subscription } from 'rxjs';
|
||||
import { UUID } from '../UUID';
|
||||
import Timer = NodeJS.Timer;
|
||||
|
||||
export class Avatar extends AvatarQueryResult
|
||||
{
|
||||
private rotation: Quaternion = Quaternion.getIdentity();
|
||||
@@ -198,7 +196,7 @@ export class Avatar extends AvatarQueryResult
|
||||
catch (ignore)
|
||||
{
|
||||
let subs: Subscription | undefined = undefined;
|
||||
let timr: Timer | undefined = undefined;
|
||||
let timr: NodeJS.Timeout | undefined = undefined;
|
||||
subs = this.onAttachmentAdded.subscribe((obj: GameObject) =>
|
||||
{
|
||||
if (obj.itemID.equals(itemID))
|
||||
|
||||
Reference in New Issue
Block a user