refactor: ♻️ Scrittura migliore per tipi funzione
This commit is contained in:
parent
5d092add1c
commit
c38c6a88ea
|
@ -98,4 +98,4 @@
|
|||
<orderEntry type="library" name="@types/mithril" level="application" />
|
||||
<orderEntry type="library" name="@types/jquery" level="application" />
|
||||
</component>
|
||||
</module>
|
||||
</module>
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue