jan/web/extension/Extension.ts
Louis 302b73ae73
test: add web helpers, services, utils tests (#3669)
* test: add web helpers tests

* fix: coverage report

* test: add more tests

* test: add more generated tests

* chore: add more tests

* test: add more tests
2024-09-20 14:24:51 +07:00

41 lines
842 B
TypeScript

/**
* Extension manifest object.
*/
class Extension {
/** @type {string} Name of the extension. */
name: string
/** @type {string} Product name of the extension. */
productName?: string
/** @type {string} The URL of the extension to load. */
url: string
/** @type {boolean} Whether the extension is activated or not. */
active?: boolean
/** @type {string} Extension's description. */
description?: string
/** @type {string} Extension's version. */
version?: string
constructor(
url: string,
name: string,
productName?: string,
active?: boolean,
description?: string,
version?: string
) {
this.name = name
this.productName = productName
this.url = url
this.active = active
this.description = description
this.version = version
}
}
export default Extension