From 9d7d4816a15cb4452a9f6d79a1e88c17c085acb0 Mon Sep 17 00:00:00 2001 From: lihbr Date: Wed, 27 Mar 2024 13:54:51 +0100 Subject: [PATCH] chore: typescript compat --- .github/workflows/ci.yml | 2 +- src/components/SliceZone.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cdf0a02..4c78304 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -78,7 +78,7 @@ jobs: matrix: os: [ubuntu-latest] node: [16] - typescript: ["4.6", "4.7", "4.8", "4.9", "5.0"] + typescript: ["4.6", "4.7", "4.8", "4.9", "5.0", "5.1", "5.2", "5.3", "5.4"] steps: - name: Set up Node diff --git a/src/components/SliceZone.ts b/src/components/SliceZone.ts index b720357..a7a9505 100644 --- a/src/components/SliceZone.ts +++ b/src/components/SliceZone.ts @@ -263,9 +263,9 @@ export const TODOSliceComponent = __PRODUCTION__ const type = computed(() => attrs.slice && typeof attrs.slice === "object" ? "slice_type" in attrs.slice - ? attrs.slice.slice_type + ? (attrs.slice as Record).slice_type : "type" in attrs.slice - ? attrs.slice.type + ? (attrs.slice as Record).type : null : null, );