Do not expect type models to be supported

This commit is contained in:
Koen Vlaswinkel
2023-12-15 14:43:55 +01:00
parent 4f2d768e07
commit d036e8144d

View File

@@ -42,7 +42,10 @@ function checkMethodConsistency(
modeledMethods: readonly ModeledMethod[],
notifier: Notifier,
) {
const expectSupported = modeledMethods.some((m) => m.type !== "none");
// Type models are currently not shown as `supported` since they do not give any model information.
const expectSupported = modeledMethods.some(
(m) => m.type !== "none" && m.type !== "type",
);
if (method.supported !== expectSupported) {
notifier.inconsistentSupported(