Skip to content

Commit

Permalink
remove all the @ts-ignore for @entropyxyz/sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
mixmix committed Aug 22, 2024
1 parent e33cf72 commit 7812c3c
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 9 deletions.
2 changes: 0 additions & 2 deletions src/common/initializeEntropy.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import Entropy, { wasmGlobalsReady } from "@entropyxyz/sdk"
// TODO: fix importing of types from @entropy/sdk/keys
// @ts-ignore
import Keyring from "@entropyxyz/sdk/keys"

Check failure on line 2 in src/common/initializeEntropy.ts

View workflow job for this annotation

GitHub Actions / Build, test, and lint

Cannot find module '@entropyxyz/sdk/keys' or its corresponding type declarations.
import inquirer from "inquirer"
import { decrypt, encrypt } from "../flows/password"
Expand Down
4 changes: 2 additions & 2 deletions src/flows/entropyTransfer/types.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @ts-ignore
import { Pair } from '@entropyxyz/sdk/keys'

Check failure on line 1 in src/flows/entropyTransfer/types.ts

View workflow job for this annotation

GitHub Actions / Build, test, and lint

Cannot find module '@entropyxyz/sdk/keys' or its corresponding type declarations.

export interface TransferOptions {
from: Pair
to: string
amount: bigint
}
}
1 change: 0 additions & 1 deletion tests/testing-utils/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// @ts-ignore
import { spinNetworkUp, spinNetworkDown, } from "@entropyxyz/sdk/testing"
import * as readline from 'readline'
import { randomBytes } from 'crypto'
Expand Down
2 changes: 0 additions & 2 deletions tests/testing-utils/setup-test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { Test } from 'tape'
import { Entropy, wasmGlobalsReady } from '@entropyxyz/sdk'
// @ts-ignore
import { spinNetworkUp, spinNetworkDown, } from "@entropyxyz/sdk/testing"
// @ts-ignore
import Keyring from '@entropyxyz/sdk/keys'

import { initializeEntropy } from '../../src/common/initializeEntropy'
Expand Down
2 changes: 0 additions & 2 deletions tests/transfer.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import test from 'tape'
import { wasmGlobalsReady } from '@entropyxyz/sdk'
// WIP: I'm seeing problems importing this?
// @ts-ignore
import Keyring from '@entropyxyz/sdk/keys'
import {
makeSeed,
Expand Down

0 comments on commit 7812c3c

Please sign in to comment.