Skip to content

Commit

Permalink
Merge pull request #83 from xmtp/daniel-typefix
Browse files Browse the repository at this point in the history
fix: fix type import errors
  • Loading branch information
dmccartney authored Aug 10, 2023
2 parents 49fe3be + cd1c31b commit f80751f
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 12 deletions.
7 changes: 1 addition & 6 deletions example/src/ConversationCreateScreen.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
import { NativeStackScreenProps } from "@react-navigation/native-stack";
import { NavigationParamList } from "./Navigation";
import {
Button,
ScrollView,
Text,
TextInput,
} from "react-native";
import { Button, ScrollView, Text, TextInput } from "react-native";
import React, { useState } from "react";
import { useXmtp } from "./XmtpContext";

Expand Down
2 changes: 0 additions & 2 deletions src/XMTP.types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { ContentTypeID } from "../build/lib/ContentTypeID";

export type UnknownContent = {
contentTypeId: string;
};
Expand Down
3 changes: 1 addition & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ import { NativeModulesProxy, EventEmitter } from "expo-modules-core";

import XMTPModule from "./XMTPModule";
import { Conversation } from "./lib/Conversation";
import type { DecodedMessage } from "./lib/DecodedMessage";
import type { Query } from "./lib/Query";
import { MessageContent } from "./XMTP.types";
import type { MessageContent, DecodedMessage } from "./XMTP.types";

export function address(): string {
return XMTPModule.address();
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Client.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Signer, utils } from "ethers";

import Conversations from "./Conversations";
import { DecodedMessage } from "./DecodedMessage";
import type { DecodedMessage } from "../XMTP.types";
import { Query } from "./Query";
import { hexToBytes } from "./util";
import * as XMTPModule from "../index";
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Conversations.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Client } from "./Client";
import { Conversation } from "./Conversation";
import type { DecodedMessage } from "./DecodedMessage";
import type { DecodedMessage } from "../XMTP.types";
import * as XMTPModule from "../index";

type Context = {
Expand Down

0 comments on commit f80751f

Please sign in to comment.