Skip to content

Commit ed55825

Browse files
docs(website): typos on lazy config
1 parent d750976 commit ed55825

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/overmind-website/api/config.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ h(Example, { name: "api/config_namespaced" })
2424

2525
## lazy (beta)
2626

27-
You can also lazy load configurations. You do this by giving each configuration a key with a function that returns the config when called. To actually load the configurations you can either call an effect or an action with th key of the configuration to load.
27+
You can also lazy load configurations. You do this by giving each configuration a key with a function that returns the config when called. To actually load the configurations you can either call an effect or an action with the key of the configuration to load.
2828

2929
```marksy
3030
h(Example, { name: "api/config_lazy" })

packages/overmind-website/examples/api/config_lazy.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { Config as ModuleBConfig } from './moduleB'
1111
1212
const config = lazy({
1313
moduleA: (): Promise<ModuleAConfig> => import('./moduleA'),
14-
moduleB: (): Promise<ModuleBConfig> => import('./moduleB)
14+
moduleB: (): Promise<ModuleBConfig> => import('./moduleB')
1515
})
1616
1717
declare module 'overmind' {
@@ -35,7 +35,7 @@ import { lazy } from 'overmind/config'
3535
3636
const config = lazy({
3737
moduleA: () => import('./moduleA'),
38-
moduleB: () => import('./moduleB)
38+
moduleB: () => import('./moduleB')
3939
})
4040
4141
const app = new Overmind(config)

0 commit comments

Comments
 (0)