Skip to content

Commit

Permalink
fix: missing lang="ts" in code snippet (#961)
Browse files Browse the repository at this point in the history
  • Loading branch information
FlyingCaiChong authored Mar 5, 2024
1 parent 0513342 commit b9ccfe5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/guide/components/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ L'option `emits` et la macro `defineEmits()` supportent également une syntaxe a
<div class="composition-api">

```vue
<script setup>
<script setup lang="ts">
const emit = defineEmits({
submit(payload: { email: string, password: string }) {
// renvoie `true` ou `false` pour indiquer
Expand Down

0 comments on commit b9ccfe5

Please sign in to comment.