Skip to content

Commit

Permalink
Merge pull request #22 from Callidon/type_definitions
Browse files Browse the repository at this point in the history
Better types definitions to avoid casting as unknown
  • Loading branch information
Callidon authored Mar 17, 2021
2 parents d8ccc78 + 36c1264 commit e6d9854
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/base-filter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,16 +68,16 @@ export default abstract class BaseFilter {
/**
* Save the current structure as a JSON object
*/
saveAsJSON() {
throw new Error('Not Implemented')
saveAsJSON(): Object {
throw new Error('not-implemented')
}

/**
* Load an Object from a provided JSON object
* @param json the JSON object to load
* @return Return the Object loaded from the provided JSON object
*/
static fromJSON(json: any) {
throw new Error('Not Implemented')
static fromJSON(json: any): any {
throw new Error('not-implemented')
}
}

0 comments on commit e6d9854

Please sign in to comment.