Remove types that are not used in public interface from export and rename EventEmitter to ContractEventEmitter and IndexFilterValues to IndexedFilterValues

This commit is contained in:
Leonid Logvinov
2017-06-14 11:27:33 +02:00
parent aea8c7f7df
commit ba289c2843
5 changed files with 14 additions and 19 deletions

View File

@@ -44,7 +44,7 @@ export interface ContractEventObj {
watch: (eventWatch: EventCallback) => void;
stopWatching: () => void;
}
export type CreateContractEvent = (indexFilterValues: IndexFilterValues,
export type CreateContractEvent = (indexFilterValues: IndexedFilterValues,
subscriptionOpts: SubscriptionOpts) => ContractEventObj;
export interface ExchangeContract extends ContractInstance {
isValidSignature: {
@@ -238,7 +238,7 @@ export const ExchangeEvents = strEnum([
]);
export type ExchangeEvents = keyof typeof ExchangeEvents;
export interface IndexFilterValues {
export interface IndexedFilterValues {
[index: string]: any;
}
@@ -276,7 +276,7 @@ export interface Artifact {
networks: {[networkId: number]: any};
}
export interface EventEmitter {
export interface ContractEventEmitter {
watch: (eventCallback: EventCallback) => void;
stopWatchingAsync: () => Promise<void>;
}