Skip to content

Commit

Permalink
docs: Replace module by configuration on configuration description
Browse files Browse the repository at this point in the history
  • Loading branch information
Travis committed Apr 14, 2020
1 parent 82ca095 commit 23f8c4b
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,13 @@ export class Server extends ServerLoader {
}
```

It's also possible to register with the @@Module@@ decorator:
It's also possible to register with the @@Configuration@@ decorator:

```typescript
import {Module} from "@tsed/di";
import { Configuration } from "@tsed/di";
import { myContainer } from "./inversify.config";

@Module({
@Configuration({
resolvers: [
{
get(token: any) {
Expand All @@ -147,9 +147,7 @@ import { myContainer } from "./inversify.config";
}
]
})
export class MyModule {

}
export class MyModule {}
```

## Versioning REST API
Expand Down

0 comments on commit 23f8c4b

Please sign in to comment.