Skip to content

Commit

Permalink
Remove typed function from API reference
Browse files Browse the repository at this point in the history
  • Loading branch information
luisherranz authored Aug 12, 2024
1 parent 24f9ca6 commit e4a34ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/reference-guides/interactivity-api/api-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,7 @@ Actions are just regular JavaScript functions. Usually triggered by the `data-wp
```ts
const { state, actions } = store("myPlugin", {
actions: {
selectItem: (id?: number) => {
selectItem: ( id ) => {
const context = getContext();
// `id` is optional here, so this action can be used in a directive.
state.selected = id || context.id;
Expand Down

0 comments on commit e4a34ef

Please sign in to comment.