Skip to content

Commit

Permalink
feat(hoe): add global typings for Hoe interface
Browse files Browse the repository at this point in the history
  • Loading branch information
tusharmath committed Jun 22, 2018
1 parent 4ef0452 commit efc2d7e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 4 additions & 0 deletions global.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
interface Hoe {
of(type: string | number): Hoe
emit(obj: any): void
}
7 changes: 2 additions & 5 deletions hoe.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
/// <reference path="global.d.ts" />

/**
* Created by tushar on 15/01/17.
*/

import { action } from 'action-type'

export interface Hoe {
of(type: string | number): Hoe
emit(obj: any): void
}

class DefaultEmitter implements Hoe {
constructor(private type: string | number, private parent: Hoe) {}

Expand Down

0 comments on commit efc2d7e

Please sign in to comment.