Skip to content

Commit

Permalink
Tighten up type check.
Browse files Browse the repository at this point in the history
  • Loading branch information
danfuzz committed Dec 9, 2024
1 parent 6ff2e20 commit 3ab5501
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compy/export/BaseComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ export class BaseComponent {

if (definedOn === this) {
result = this._impl_configClass();
MustBe.constructorFunction(result);
MustBe.subclassOf(result, BaseConfig);
} else {
result = definedOn.CONFIG_CLASS;
}
Expand Down

0 comments on commit 3ab5501

Please sign in to comment.