Skip to content

Commit

Permalink
1.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
rkuykendall committed Mar 6, 2019
1 parent 19905d7 commit ca272f7
Show file tree
Hide file tree
Showing 9 changed files with 129 additions and 129 deletions.
29 changes: 13 additions & 16 deletions dist/interfaces.d.ts
Original file line number Diff line number Diff line change
@@ -1,30 +1,27 @@
import React, { Component } from 'react';
import Tester from './tester';
import ConfigurationClass from './ConfigurationClass';
export declare type ComponentClass = React.FC | (new () => Component<any>);
export declare type ComponentClass = React.FC | (new (props: any) => Component<any>);
export interface IMountOps {
async?: boolean;
}
export interface IWrapper {
component: ComponentClass;
name: string;
props: object;
renderChildren?: boolean;
}
export interface IHook extends IWrapper {
export declare type IOnBeforeMount = (tester: Tester, mountOpts?: IMountOps) => void | Promise<void>;
export declare type IOnInit = (tester: Tester) => void;
export interface IBaseHook {
[key: string]: any;
onBeforeMount: (tester: Tester, mountOpts?: IMountOps) => void | Promise<void>;
onInit: (tester: Tester) => void;
props: object | (() => void);
name: string;
onBeforeMount?: IOnBeforeMount;
onInit?: IOnInit;
shortCuts?: {
[shortCutName: string]: () => void;
};
wrapper?: () => {
Component: ComponentClass;
name: string;
props: object;
};
}
export interface IWrapper extends IBaseHook {
component: ComponentClass;
props?: object | (() => void);
renderChildren?: boolean;
}
export declare type IHook = IBaseHook | IWrapper;
export interface IProfile {
[key: string]: boolean | string;
name: string;
Expand Down
73 changes: 37 additions & 36 deletions dist/tester.cjs.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/tester.cjs.js.map

Large diffs are not rendered by default.

73 changes: 37 additions & 36 deletions dist/tester.esm.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/tester.esm.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit ca272f7

Please sign in to comment.