Various fixes

This commit is contained in:
barsdeveloper
2022-09-09 20:39:08 +02:00
parent 9d424809c9
commit 57ef15c943
13 changed files with 349 additions and 100 deletions

View File

@@ -0,0 +1,22 @@
/**
* @typedef {import("./IEntity").default} IEntity
*/
export default class CalculatedType {
#f
/**
* @param {Function} f
*/
constructor(f) {
this.#f = f
}
/**
* @param {IEntity} entity
*/
calculate(entity) {
return this.f(entity)
}
}