diff --git a/experimental/content-type-screen-effect/src/ScreenEffect.test.ts b/experimental/content-type-screen-effect/src/ScreenEffect.test.ts index add34d0..c7fff1c 100644 --- a/experimental/content-type-screen-effect/src/ScreenEffect.test.ts +++ b/experimental/content-type-screen-effect/src/ScreenEffect.test.ts @@ -1,10 +1,6 @@ import { Wallet } from "ethers"; import { Client } from "@xmtp/xmtp-js"; -import { - ContentTypeScreenEffect, - EffectType, - ScreenEffectCodec, -} from "./ScreenEffect"; +import { ContentTypeScreenEffect, ScreenEffectCodec } from "./ScreenEffect"; import type { ScreenEffect } from "./ScreenEffect"; describe("ScreenEffectContentType", () => { @@ -38,7 +34,7 @@ describe("ScreenEffectContentType", () => { const screenEffect: ScreenEffect = { messageId: originalMessage.id, - effectType: EffectType.SNOW, + effectType: "SNOW", }; await conversation.send(screenEffect, { @@ -56,6 +52,6 @@ describe("ScreenEffectContentType", () => { const messageContent = screenEffectMessage.content as ScreenEffect; expect(messageContent.messageId).toBe(originalMessage.id); - expect(messageContent.effectType).toBe(EffectType.SNOW); + expect(messageContent.effectType).toBe("SNOW"); }); }); diff --git a/experimental/content-type-screen-effect/src/ScreenEffect.ts b/experimental/content-type-screen-effect/src/ScreenEffect.ts index 49911ab..769389b 100644 --- a/experimental/content-type-screen-effect/src/ScreenEffect.ts +++ b/experimental/content-type-screen-effect/src/ScreenEffect.ts @@ -1,10 +1,7 @@ import { ContentTypeId } from "@xmtp/xmtp-js"; import type { ContentCodec, EncodedContent } from "@xmtp/xmtp-js"; -export enum EffectType { - SNOW = "SNOW", - RAIN = "RAIN", -} +export type EffectType = "SNOW" | "RAIN"; export const ContentTypeScreenEffect = new ContentTypeId({ authorityId: "xmtp.org", diff --git a/experimental/content-type-screen-effect/src/index.ts b/experimental/content-type-screen-effect/src/index.ts index d5fa553..c784fa9 100644 --- a/experimental/content-type-screen-effect/src/index.ts +++ b/experimental/content-type-screen-effect/src/index.ts @@ -1,2 +1,2 @@ export { ScreenEffectCodec, ContentTypeScreenEffect } from "./ScreenEffect"; -export type { ScreenEffect } from "./ScreenEffect"; +export type { ScreenEffect, EffectType } from "./ScreenEffect";