Skip to content

Commit 93ecc74

Browse files
chore: relax frame type to be easier to work with
1 parent b081dde commit 93ecc74

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

packages/frames.js/src/types.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export type {
55
SupportedParsingSpecification,
66
} from "./frame-parsers/types";
77

8-
export type FrameVersion = "vNext" | `${number}-${number}-${number}`;
8+
export type FrameVersion = string;
99

1010
export type ImageAspectRatio = "1.91:1" | "1:1";
1111

@@ -145,12 +145,7 @@ export type FrameButton =
145145
/** The permitted types of `buttonIndex` in a Frame POST payload response */
146146
export type ActionIndex = 1 | 2 | 3 | 4;
147147

148-
export type FrameButtonsType =
149-
| []
150-
| [FrameButton]
151-
| [FrameButton, FrameButton]
152-
| [FrameButton, FrameButton, FrameButton]
153-
| [FrameButton, FrameButton, FrameButton, FrameButton];
148+
export type FrameButtonsType = FrameButton[];
154149

155150
export type AddressReturnType<
156151
Options extends { fallbackToCustodyAddress?: boolean } | undefined,

0 commit comments

Comments
 (0)