We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 797ddf5 commit 3060340Copy full SHA for 3060340
apps/web/src/types/bridge.ts
@@ -15,7 +15,7 @@ export type CommandDataMap = {
15
16
export interface BridgeCommand<T extends CommandType> {
17
type: T;
18
- data: CommandDataMap[T];
+ data?: CommandDataMap[T];
19
}
20
21
declare global {
apps/web/src/utils/bridge.ts
@@ -65,7 +65,7 @@ class NativeBridge {
65
66
private sendCommand<T extends CommandType>(
67
type: T,
68
- data: CommandDataMap[T],
+ data?: CommandDataMap[T],
69
): void {
70
try {
71
const bridgeCommand: BridgeCommand<T> = {
@@ -88,7 +88,7 @@ class NativeBridge {
88
89
90
// 밈 공유하기
91
- shareMeme(data: ShareMemeData): void {
+ shareMeme(data: ShareMemeData) {
92
this.sendCommand(COMMAND_TYPE.SHARE_MEME, data);
93
94
0 commit comments