Skip to content

Commit

Permalink
refactor: use esModuleInterop option of typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Aug 29, 2019
1 parent 00d3c32 commit bff2331
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/AbstractFactory/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

/// <reference path="../../adonis-typings/redis.ts" />

import * as Emitter from 'emittery'
import Emitter from 'emittery'
import { Redis, Cluster } from 'ioredis'
import { Exception, parseIocReference } from '@poppinss/utils'
import { PubSubChannelHandler, PubSubPatternHandler } from '@ioc:Adonis/Addons/Redis'
Expand Down
2 changes: 1 addition & 1 deletion src/Redis/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@

import { Exception } from '@poppinss/utils'

import { ioMethods } from '../ioMethods'
import { RedisFactory } from '../RedisFactory'
import { RedisClusterFactory } from '../RedisClusterFactory'
import { ioMethods } from '../ioMethods'

/**
* Redis class exposes the API to interact with a redis server. It automatically
Expand Down
2 changes: 1 addition & 1 deletion src/RedisClusterFactory/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

/// <reference path="../../adonis-typings/redis.ts" />

import * as Redis from 'ioredis'
import Redis from 'ioredis'
import { ClusterConfigContract } from '@ioc:Adonis/Addons/Redis'

import { ioMethods } from '../ioMethods'
Expand Down
2 changes: 1 addition & 1 deletion src/RedisFactory/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

/// <reference path="../../adonis-typings/redis.ts" />

import * as Redis from 'ioredis'
import Redis from 'ioredis'
import { ConnectionConfigContract } from '@ioc:Adonis/Addons/Redis'

import { ioMethods } from '../ioMethods'
Expand Down
2 changes: 1 addition & 1 deletion test/redis-cluster-factory.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

/// <reference path="../adonis-typings/redis.ts" />

import * as test from 'japa'
import test from 'japa'
import { RedisClusterFactory } from '../src/RedisClusterFactory'
import { RedisClusterFactoryContract } from '@ioc:Adonis/Addons/Redis'

Expand Down
2 changes: 1 addition & 1 deletion test/redis-factory.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

/// <reference path="../adonis-typings/redis.ts" />

import * as test from 'japa'
import test from 'japa'
import { Ioc } from '@adonisjs/fold'
import { RedisFactory } from '../src/RedisFactory'
import { RedisFactoryContract } from '@ioc:Adonis/Addons/Redis'
Expand Down
2 changes: 1 addition & 1 deletion test/redis.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

/// <reference path="../adonis-typings/redis.ts" />

import * as test from 'japa'
import test from 'japa'
import { RedisContract } from '@ioc:Adonis/Addons/Redis'

import { Redis } from '../src/Redis'
Expand Down
5 changes: 4 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"extends": "./node_modules/@adonisjs/mrm-preset/_tsconfig"
"extends": "./node_modules/@adonisjs/mrm-preset/_tsconfig",
"compilerOptions": {
"esModuleInterop": true
}
}

0 comments on commit bff2331

Please sign in to comment.