From 27e2e19805b55224dbbb1a5a4a388bcf427194ed Mon Sep 17 00:00:00 2001 From: Mateusz Kulpa Date: Sun, 24 Mar 2024 14:57:24 +0100 Subject: [PATCH] feat: improve type checking of the default variant identifier using `NoInfer` utility type --- src/runtime/components/ABTest.vue | 8 ++++---- src/runtime/composables/useABTest.ts | 4 ++-- src/runtime/core/variants.ts | 2 +- src/runtime/types/index.ts | 13 ++++++++----- test/variants.test.ts | 15 +++++++++++++++ 5 files changed, 30 insertions(+), 12 deletions(-) diff --git a/src/runtime/components/ABTest.vue b/src/runtime/components/ABTest.vue index cf5e4df..2cc9720 100644 --- a/src/runtime/components/ABTest.vue +++ b/src/runtime/components/ABTest.vue @@ -1,4 +1,4 @@ -