Skip to content

Commit

Permalink
fixed wrong interface (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
spaghiajoeojo authored Nov 27, 2020
1 parent 79129ab commit ecedab1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/definitions.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import { Authentication, User } from "./user";

declare module "@capacitor/core" {
interface PluginRegistry {
GoogleAuth: GoogleAuthPlugin;
}
}

export interface GoogleAuthPlugin {
signIn(options: { value: string }): Promise<{value: string}>;
signIn(): Promise<User>;
refresh(): Promise<Authentication>;
signOut(): Promise<any>;
}

0 comments on commit ecedab1

Please sign in to comment.