Skip to content

Commit 383259d

Browse files
docs(examples): pass undefined to shortcuts plugin data
1 parent ba3cda5 commit 383259d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/js/shortcutsPlugin.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ type DarkModeItem = {
66
label: string;
77
};
88

9-
export const shortcutsPlugin: AutocompletePlugin<DarkModeItem> = {
9+
export const shortcutsPlugin: AutocompletePlugin<DarkModeItem, undefined> = {
1010
getSources({ query }) {
1111
if (query !== '/' && query !== 'dark' && query !== 'light') {
1212
return [];

0 commit comments

Comments
 (0)