diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 000000000..567632234 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,13 @@ +name: Test +on: + pull_request: +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - uses: actions/setup-node@v3 + # Note: this triggers `prepare` which compiles the types. + - run: npm ci diff --git a/src/lib/Client.ts b/src/lib/Client.ts index b2b8504e0..006e2407f 100644 --- a/src/lib/Client.ts +++ b/src/lib/Client.ts @@ -2,18 +2,13 @@ import { Signer, utils } from "ethers"; import Conversations from "./Conversations"; import type { + DecryptedLocalAttachment, DecodedMessage, EncryptedLocalAttachment, - RemoteAttachmentMetadata, } from "../XMTP.types"; import { Query } from "./Query"; import { hexToBytes } from "./util"; import * as XMTPModule from "../index"; -import { - AttachmentFile, - DecryptedLocalAttachment, - LocalAttachment, -} from "../XMTP.types"; declare const Buffer; export class Client {