diff --git a/docs/components/content/Alert.vue b/docs/components/content/Alert.vue index 959459e0..47c231b4 100644 --- a/docs/components/content/Alert.vue +++ b/docs/components/content/Alert.vue @@ -3,10 +3,10 @@ import type uiColors from '#ui-colors' const props = defineProps({ - title: { type: String }, - icon: { type: String }, - color: { type: String as PropType<(typeof uiColors)[number]> }, - to: { type: String }, + title: { type: String, required: true}, + icon: { type: String, default: '' }, + color: { type: String as PropType<(typeof uiColors)[number]>, required: true }, + to: { type: String, default: '' }, }) const target = computed(() => (props.to?.startsWith('https://') ? '_blank' : '')) diff --git a/playground/server/api/cached.ts b/playground/server/api/cached.ts index a29020a3..9a5c60b6 100644 --- a/playground/server/api/cached.ts +++ b/playground/server/api/cached.ts @@ -1,4 +1,4 @@ -export default cachedEventHandler(async (event) => { +export default cachedEventHandler(async () => { return { now: Date.now() }