Skip to content

Commit

Permalink
Declare types for wp/keyboard-shortcuts
Browse files Browse the repository at this point in the history
  • Loading branch information
noahtallen committed Nov 18, 2021
1 parent 7a96a2e commit a8de17d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion client/landing/gutenboarding/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@
}
},
"files": [ "index.tsx" ],
"include": []
"include": [ "./types.d.ts" ]
}
4 changes: 4 additions & 0 deletions client/landing/gutenboarding/types.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
declare module '@wordpress/keyboard-shortcuts' {
type ShortcutProts = { children: JSX.Element };
export function ShortcutProvider( props: ShortcutProts ): JSX.Element;
}

0 comments on commit a8de17d

Please sign in to comment.