Skip to content

Commit

Permalink
Fix default kontik type to Providers. (#11)
Browse files Browse the repository at this point in the history
* Fix default kontik type to Providers.
  • Loading branch information
antoninbouchal committed Nov 27, 2019
1 parent ede7637 commit a676200
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/Kontik.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import {ProvidersStorage} from "./types/ProvidersStorage"
import {ProviderDefinitionRepo} from "./interfaces/ProviderDefinitionRepo"
import {Providers} from "./types/Providers"

export default class Kontik {
export default class Kontik implements Providers {
/**
* List of initialized providers which isn't finished yet.
*/
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export {
export default (
config: any,
options?: Options
): Kontik => {
): Providers => {
const dir = options && options.dir ? options.dir : `${process.cwd()}${path.sep}providers`
const providers = options && options.providers ? options.providers : {}

Expand Down

0 comments on commit a676200

Please sign in to comment.