JsDoc types fixed and typecheck activated

This commit is contained in:
barsdeveloper
2022-03-30 21:59:41 +02:00
parent 464a9c068d
commit 90400110e2
33 changed files with 391 additions and 151 deletions

View File

@@ -1,5 +1,8 @@
// @ts-check
/**
* @template T
*/
export default class TypeInitialization {
static sanitize(value) {
@@ -13,9 +16,9 @@ export default class TypeInitialization {
}
/**
* @param {Object} type
* @param {boolean} showDefault
* @param {*} value
* @param {new () => T} type
* @param {Boolean} showDefault
* @param {any} value
*/
constructor(type, showDefault = true, value = undefined) {
if (value === undefined) {