Home Manual Reference Source Test Repository
import {Module} from 'modulemanager/src/index.js'
public interface | source

Module

Module interface

Example:

import { Module } from 'modulemanager';

export default class extends Module {}

Test:

Constructor Summary

Public Constructor
public

constructor(options: Object)

initializes all variables

Method Summary

Public Methods
public abstract

this method must be overridden by sub class.

public abstract

this method must be overridden by sub class.

public abstract

this method must be overridden by sub class.

public abstract

this method must be overridden by sub class.

public abstract

update()

this method must be overridden by sub class.

Public Constructors

public constructor(options: Object) source

initializes all variables

Params:

NameTypeAttributeDescription
options Object
  • nullable: false

requires a JSON object with options, the options are available with this.KEY

Throw:

ReferenceError

throw referencerror when options are missing

Public Methods

public abstract activate() source

this method must be overridden by sub class.

Throw:

ReferenceError

throw referencerror when not overwritten

Test:

public abstract deactivate() source

this method must be overridden by sub class.

Throw:

ReferenceError

throw referencerror when not overwritten

Test:

public abstract install() source

this method must be overridden by sub class.

Throw:

ReferenceError

throw referencerror when not overwritten

Test:

public abstract uninstall() source

this method must be overridden by sub class.

Throw:

ReferenceError

throw referencerror when not overwritten

Test:

public abstract update() source

this method must be overridden by sub class.

Throw:

ReferenceError

throw referencerror when not overwritten

Test: