diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-12-30 15:12:11 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-12-30 15:49:09 -0400 |
commit | 042dff667e5c8f496c71a38a4e246fdf40dc437f (patch) | |
tree | baafa64eca5d32f17914203eb5fd90a1866f6d22 /src/data/composite/wiki-data | |
parent | c3e8199a6ab1305bcc528861bf71d37098dee947 (diff) |
validators: set creator meta on typeof, instanceof validators
Diffstat (limited to 'src/data/composite/wiki-data')
-rw-r--r-- | src/data/composite/wiki-data/inputThingClass.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/data/composite/wiki-data/inputThingClass.js b/src/data/composite/wiki-data/inputThingClass.js index d70480e6..5f2ca5a6 100644 --- a/src/data/composite/wiki-data/inputThingClass.js +++ b/src/data/composite/wiki-data/inputThingClass.js @@ -3,7 +3,7 @@ // referencing Thing class values defined outside of the #composite folder. import {input} from '#composite'; -import {isType} from '#validators'; +import {isFunction} from '#validators'; // TODO: Kludge. import Thing from '../../things/thing.js'; @@ -11,7 +11,7 @@ import Thing from '../../things/thing.js'; export default function inputThingClass() { return input.staticValue({ validate(thingClass) { - isType(thingClass, 'function'); + isFunction(thingClass); if (!Object.hasOwn(thingClass, Thing.referenceType)) { throw new TypeError(`Expected a Thing constructor, missing Thing.referenceType`); |