Skip to content

Commit

Permalink
removes depreceated import syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
mustafaiman committed Apr 13, 2016
1 parent 0b9d261 commit 31b20c2
Show file tree
Hide file tree
Showing 13 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions src/DistributedObject.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Promise = Q.Promise;
import * as Q from 'q';
export interface DistributedObject {
/*
* Returns the key of the partition that this DistributedObject is assigned to.
Expand All @@ -20,5 +20,5 @@ export interface DistributedObject {
* Destroys this object cluster-wide.
* Clears all resources taken for this object.
*/
destroy() : Promise<void>;
destroy() : Q.Promise<void>;
}
2 changes: 1 addition & 1 deletion src/HazelcastClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {InvocationService, ListenerService} from './invocation/InvocationService
import ClientConnectionManager = require('./invocation/ClientConnectionManager');
import {ClientConfig} from './Config';
import ProxyManager = require('./proxy/ProxyManager');
import Q = require('q');
import * as Q from 'q';
import {IMap} from './IMap';
import {JsonSerializationService} from './serialization/SerializationService';
import PartitionService = require('./PartitionService');
Expand Down
2 changes: 1 addition & 1 deletion src/Heartbeat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {ClientPingCodec} from './codec/ClientPingCodec';
import HazelcastClient from './HazelcastClient';
import ClientConnection = require('./invocation/ClientConnection');
import {ConnectionHeartbeatListener} from './ConnectionHeartbeatListener';
import Q = require('q');
import * as Q from 'q';
import {LoggingService} from './LoggingService';
import Address = require('./Address');

Expand Down
2 changes: 1 addition & 1 deletion src/PartitionService.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Q = require('q');
import * as Q from 'q';
import GetPartitionsCodec = require('./codec/GetPartitionsCodec');
import ClientMessage = require('./ClientMessage');
import Address = require('./Address');
Expand Down
2 changes: 1 addition & 1 deletion src/invocation/ClientConnection.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import net = require('net');
import Q = require('q');
import * as Q from 'q';
import Address = require('../Address');
import {BitsUtil} from '../BitsUtil';
import {LoggingService} from '../LoggingService';
Expand Down
2 changes: 1 addition & 1 deletion src/invocation/ClientConnectionManager.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Q = require('q');
import * as Q from 'q';

import Address = require('../Address');
import ClientConnection = require('./ClientConnection');
Expand Down
2 changes: 1 addition & 1 deletion src/invocation/ClusterService.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import ClientConnection = require('./ClientConnection');
import Address = require('../Address');
import Q = require('q');
import * as Q from 'q';
import {ClientAddMembershipListenerCodec} from '../codec/ClientAddMembershipListenerCodec';
import ClientMessage = require('../ClientMessage');
import {Member} from '../Member';
Expand Down
2 changes: 1 addition & 1 deletion src/invocation/ConnectionAuthenticator.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Q = require('q');
import * as Q from 'q';

import ClientConnection = require('./ClientConnection');
import {InvocationService} from './InvocationService';
Expand Down
2 changes: 1 addition & 1 deletion src/invocation/InvocationService.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import ClientConnection = require('./ClientConnection');
import ClientMessage = require('../ClientMessage');
import Q = require('q');
import * as Q from 'q';
import Long = require('long');
import {Data} from '../serialization/Data';
import Address = require('../Address');
Expand Down
2 changes: 1 addition & 1 deletion src/proxy/BaseProxy.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {SerializationService} from '../serialization/SerializationService';
import {Data} from '../serialization/Data';
import ClientMessage = require('../ClientMessage');
import Q = require('q');
import * as Q from 'q';
import HazelcastClient from '../HazelcastClient';

export class BaseProxy {
Expand Down
2 changes: 1 addition & 1 deletion src/proxy/Map.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {BaseProxy} from './BaseProxy';
import {IMap} from '../IMap';
import Q = require('q');
import * as Q from 'q';
import {Data} from '../serialization/Data';
import {MapPutCodec} from '../codec/MapPutCodec';
import ClientMessage = require('../ClientMessage');
Expand Down
2 changes: 1 addition & 1 deletion src/proxy/ProxyManager.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Q = require('q');
import * as Q from 'q';
import {DistributedObject} from '../DistributedObject';
import {Map} from './Map';
import {BaseProxy} from './BaseProxy';
Expand Down
2 changes: 1 addition & 1 deletion src/proxy/Set.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {BaseProxy} from '../proxy/BaseProxy';
import {ISet} from '../ISet';
import Q = require('q');
import * as Q from 'q';
export class Set<E> extends BaseProxy implements ISet<E> {
add(entry : E) : Q.Promise<boolean> {
//TODO
Expand Down

0 comments on commit 31b20c2

Please sign in to comment.