We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9000cef commit 51128c2Copy full SHA for 51128c2
src/hooks/useDeck.ts
@@ -174,7 +174,7 @@ export const useDeck = (
174
const props = {
175
drawKey: (callback: DrawKey) => drawKey(parseInt(key), callback),
176
config: keyConf?.config,
177
- getConfig: profiles.getConfig(parseInt(key)),
+ getConfig: () => profiles.getConfig(parseInt(key)),
178
};
179
180
if (initKeyConf) {
src/types/Module.ts
@@ -31,7 +31,7 @@ type ModuleOnPress = {
31
type ModuleInit = {
32
drawKey: (callback: DrawKey) => void;
33
config: Config;
34
- getConfig: Promise<Config>;
+ getConfig: () => Config;
35
36
37
export type Module = {
0 commit comments