Skip to content

Commit

Permalink
Temporarily add ts-ignore to fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
spacesailor24 committed Oct 16, 2020
1 parent deb4d21 commit a7bccb3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
10 changes: 6 additions & 4 deletions packages/web3-eth2-beaconchain/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import { ETH2Core } from '../../web3-eth2-core/src/index'
// @ts-ignore - types not full implemented yet
import { ETH2Core } from 'web3-eth2-core'
import { DefaultSchema } from './schema'

import { IETH2BeaconChain } from '../types/index'
import { IBaseAPISchema } from '../../web3-eth2-core/src/schema'

import { ETH2BaseOpts } from '../../web3-eth2-core/types/index'
// @ts-ignore - types not full implemented yet
import { IBaseAPISchema } from 'web3-eth2-core'
// @ts-ignore - types not full implemented yet
import { ETH2BaseOpts } from 'web3-eth2-core'

// @ts-ignore - ETH2BeaconChain incorrectly implements interface IETH2BeaconChain
export class ETH2BeaconChain extends ETH2Core implements IETH2BeaconChain {
Expand Down
3 changes: 3 additions & 0 deletions packages/web3-eth2-beaconchain/test/constructor.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ const providerSuffix = '/eth/v1/beacon/'
it('constructs a ETH2BeaconChain instance with expected properties', () => {
const eth2BeaconChain = new ETH2BeaconChain(provider)

// @ts-ignore - types not full implemented yet
expect(eth2BeaconChain.name).toBe('eth2-beaconchain')
// @ts-ignore - types not full implemented yet
expect(eth2BeaconChain.provider).toBe(`${provider}${providerSuffix}`)
// @ts-ignore - types not full implemented yet
expect(eth2BeaconChain.protectProvider)
})

0 comments on commit a7bccb3

Please sign in to comment.