Skip to content

Commit

Permalink
fix: symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
Blackman99 committed Jul 7, 2023
1 parent dcfa9a6 commit 5e4f7b2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/spicy-deers-turn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@casual-ui/svelte': minor
---

fix: symbol
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<script>
// eslint-disable-next-line import/default
import dayjs from 'dayjs'
import { getContext } from 'svelte'
import createClickOutsideAction from '../../../actions/createClickOutsideAction'
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/hooks/useContextProp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { getContext, hasContext, setContext } from 'svelte'
import type { Writable } from 'svelte/store'
import { writable } from 'svelte/store'

type ContextKey = string | number | Symbol
type ContextKey = string | number | symbol

export default <T>(key: ContextKey, val: T, defaultVal: any, affectAncestor = false) => {
const hasVal = val !== undefined
Expand Down

0 comments on commit 5e4f7b2

Please sign in to comment.