Skip to content

Commit

Permalink
Update docs/src/content/docs/modular-station.md
Browse files Browse the repository at this point in the history
Co-authored-by: Bryce Russell <[email protected]>
Signed-off-by: Luiz Ferraz <[email protected]>
  • Loading branch information
Fryuni and BryceRussell authored May 21, 2024
1 parent 372353c commit 6077862
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/content/docs/modular-station.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ By default, accessing your API from any hook besides `astro:config:setup` using
If you have an API that also works when called from other hooks, you can wrap them with `onHook` to declare which hooks are supported. For example, if you expose a method to register information that is only used on `astro:build:start` you can allow it to be used on any hook before that:
```ts title="my-integration.ts" ins={10-12}
```ts title="my-integration.ts" ins={11-13}
import { withApi, onHook } from '@inox-tools/modular-station';

export default withApi((options: Options) => {
Expand Down

0 comments on commit 6077862

Please sign in to comment.