Skip to content

Commit

Permalink
chore: typescript compat
Browse files Browse the repository at this point in the history
  • Loading branch information
lihbr committed Mar 27, 2024
1 parent 528581d commit 9d7d481
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/components/SliceZone.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, unknown>).slice_type
: "type" in attrs.slice
? attrs.slice.type
? (attrs.slice as Record<string, unknown>).type
: null
: null,
);
Expand Down

0 comments on commit 9d7d481

Please sign in to comment.