Skip to content

Commit

Permalink
chore(config): update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
climba03003 committed Jan 11, 2024
1 parent 96fe271 commit 85df54b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@ yarn add @kakang/fastify-config
```ts
import { build } from '@kakang/fastify-config'

// you need to explicit type it yourself
declare modules 'fastify' {
interface FastifyInstance {
config: {
FOO: string
}
}
}

const { env, plugin } = build({
schema: {
type: 'object',
Expand Down

0 comments on commit 85df54b

Please sign in to comment.