Skip to content

Commit

Permalink
Release 0.0.16
Browse files Browse the repository at this point in the history
BREAKING CHANGES: Terrific Module is not global anymore
  • Loading branch information
jantimon committed May 17, 2017
1 parent 5d853c0 commit c3aa41c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/// <reference path="terrific.d.ts" />
import { TerrificModule } from './terrific';
import {TerrificSpec} from './terrific-module';

interface ITerrificSpec {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "terrific-singleton",
"version": "0.0.15",
"version": "0.0.16",
"description": "helper module to use terrific in react projects",
"repository": "https://github.com/jantimon/terrific-singleton",
"main": "index.js",
Expand Down
2 changes: 1 addition & 1 deletion terrific-module.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/// <reference path="terrific.d.ts" />
import { TerrificModule } from './terrific';

export abstract class TerrificSpec implements TerrificModule {
_ctx: HTMLElement;
Expand Down
6 changes: 3 additions & 3 deletions terrific.d.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
declare interface TerrificModule {
export interface TerrificModule {
_ctx?: HTMLElement;
api?: any;
start(resolve: (value?: any) => void, reject?: (error?: any) => void): void;
stop(): void;
[others: string]: any;
}

declare class TerrificEventEmitter {
export class TerrificEventEmitter {
_listeners: any;
_sandbox: TerrificSandbox;
_connected: boolean;
Expand All @@ -31,7 +31,7 @@ declare class TerrificEventEmitter {
disconnect(): TerrificEventEmitter;
}

declare class TerrificSandbox {
export class TerrificSandbox {
_application: any;
_eventEmitters: TerrificEventEmitter[];

Expand Down

0 comments on commit c3aa41c

Please sign in to comment.