Skip to content

Commit

Permalink
chore: some typo (#2377)
Browse files Browse the repository at this point in the history
  • Loading branch information
dream2023 committed Oct 29, 2022
1 parent a849634 commit da0a5ef
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion packages/.vitepress/theme/components/FunctionInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import exportSizes from '../../../export-size.json'
const props = defineProps<{ fn: string }>()
const info = computed(() => functions.find(i => i.name === props.fn))
const format = (ts: number) => ago(-1, 'day')
const lastUpdated = useTimeAgo(new Date(info.value?.lastUpdated || 0))
const link = computed(() => `/functions\#category=${encodeURIComponent(info.value.category)}`)
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/createEventHook/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ onResult((result) => {
})
onError((error) => {
console.errr(error)
console.error(error)
})
</script>
```
2 changes: 1 addition & 1 deletion packages/shared/resolveUnref/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { unref } from 'vue-demi'
import type { MaybeComputedRef } from '../utils'

/**
* Normalize value/ref/getter to `ref` or `computed`.
* Get the value of value/ref/getter.
*/
export function resolveUnref<T>(r: MaybeComputedRef<T>): T {
return typeof r === 'function'
Expand Down

0 comments on commit da0a5ef

Please sign in to comment.