refactor: ♻️ Scrittura migliore per tipi funzione

This commit is contained in:
Maicol Battistini 2021-09-08 16:14:22 +02:00
parent 5d092add1c
commit c38c6a88ea
No known key found for this signature in database
GPG Key ID: 4FDB0F87CDB1D34A
2 changed files with 2 additions and 2 deletions

View File

@ -98,4 +98,4 @@
<orderEntry type="library" name="@types/mithril" level="application" />
<orderEntry type="library" name="@types/jquery" level="application" />
</component>
</module>
</module>

View File

@ -1,7 +1,7 @@
/**
* Check if class/object A is the same as or a subclass of class B.
*/
export default function subclassOf(A: object, B: object) {
export default function subclassOf(A: Object, B: Object) {
// noinspection JSUnresolvedVariable
return A && (A === B || A.prototype instanceof B);
}