-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from dutchenkoOleg/master
Add TypeScript support
- Loading branch information
Showing
4 changed files
with
12 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
export abstract class WebPluginInterface { | ||
public get defaultSettings (): {[p: string]: any} | ||
public get defaultProps (): {[p: string]: any} | ||
protected _setup (): any | ||
protected _beforeInitialize (): any | ||
protected _afterInitialize (): any | ||
protected _initialize (): any | ||
public initialize (): any | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,62 +3,38 @@ | |
/** | ||
* @module WebPluginInterface | ||
* @author OlegDutchenko <[email protected]> | ||
* @version 3.0.3 | ||
* @version 3.2.0 | ||
*/ | ||
|
||
/** | ||
* @interface | ||
*/ | ||
export class WebPluginInterface { | ||
constructor () { // eslint-disable-line no-useless-constructor | ||
// code | ||
} | ||
|
||
/** | ||
* @type {Object} | ||
*/ | ||
get defaultSettings () { | ||
return {}; | ||
} | ||
|
||
/** | ||
* @type {Object} | ||
*/ | ||
get defaultProps () { | ||
return {}; | ||
} | ||
|
||
/** | ||
* @protected | ||
*/ | ||
_setup () { | ||
// code | ||
} | ||
|
||
/** | ||
* @protected | ||
*/ | ||
_beforeInitialize () { | ||
// code | ||
} | ||
|
||
/** | ||
* @protected | ||
*/ | ||
_afterInitialize () { | ||
// code | ||
} | ||
|
||
/** | ||
* @protected | ||
*/ | ||
_initialize () { | ||
// code | ||
} | ||
|
||
/** | ||
* @public | ||
*/ | ||
initialize () { | ||
// code | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters