diff options
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`); |