Skip to content

Commit

Permalink
chore: improve types
Browse files Browse the repository at this point in the history
  • Loading branch information
0xmad committed Nov 23, 2023
1 parent 0e89f0c commit 626665d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/types/src/contentScript/index.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
import type { IZkMetadata } from "../proof";

export interface IInjectedMessageData<P = unknown, M = unknown> {
target: string;
nonce: string;
message: M;
payload: [string, P];
}

export interface IInjectedProviderRequest<P = unknown, M = unknown> {
export interface IInjectedProviderRequest<P = unknown, M = IZkMetadata> {
method: string;
payload?: P;
error?: boolean;
meta?: Record<string, M>;
meta?: M;
source?: "offscreen";
}

0 comments on commit 626665d

Please sign in to comment.