Skip to content

Commit

Permalink
feat(bottle): add type declaration for new app bridge api
Browse files Browse the repository at this point in the history
  • Loading branch information
stakbucks committed Oct 30, 2024
1 parent 340f879 commit 1b98ee4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions apps/bottle/global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ declare const Native: {
onSignup: (json: string) => void;
openLink: (json: string) => void;
openWebView: (json: string) => void;
onIntroductionComplete: () => void;
onProfileImageEditComplete: () => void;
};

interface WebviewCloseMessage {
Expand Down
1 change: 0 additions & 1 deletion apps/bottle/src/features/app-bridge/interface.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { LoginResponse } from '@/store/mutation/useLoginMutation';
import { Tokens } from '../server/auth';
import App from 'next/app';

export enum AppBridgeMessageType {
TOAST_OPEN = 'onToastOpen',
Expand Down

0 comments on commit 1b98ee4

Please sign in to comment.