0.0.32 • Published 2 years ago
@types/persona v0.0.32
Installation
npm install --save @types/persona
Summary
This package contains type definitions for Persona (http://www.mozilla.org/en-US/persona).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/persona.
index.d.ts
// Type definitions for Persona
// Project: http://www.mozilla.org/en-US/persona
// Definitions by: James Frasca <https://github.com/Nycto>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare namespace Persona {
export interface WatchOptions {
loggedInUser: string;
onlogin: (s: string) => void;
onlogout: () => void;
onready?: (() => void) | undefined;
}
export interface RequestOptions {
backgroundColor?: string | undefined;
siteName?: string | undefined;
siteLogo?: string | undefined;
termsOfService?: string | undefined;
privacyPolicy?: string | undefined;
returnTo?: string | undefined;
oncancel?: (() => void) | undefined;
}
export interface GetOptions {
backgroundColor?: string | undefined;
siteName?: string | undefined;
siteLogo?: string | undefined;
termsOfService?: string | undefined;
privacyPolicy?: string | undefined;
}
export interface Persona {
watch(options: WatchOptions): void;
request(options: RequestOptions): void;
request(): void;
logout(): void;
get(gotAssertion: (s: string) => void): void;
get(gotAssertion: (s: string) => void, options: GetOptions): void;
}
}
interface Navigator {
id: Persona.Persona;
}
Additional Details
- Last updated: Thu, 08 Jul 2021 20:19:32 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by James Frasca.
0.0.30
2 years ago
0.0.31
2 years ago
0.0.32
2 years ago
0.0.29
4 years ago
0.0.28
9 years ago
0.0.27
9 years ago
0.0.26-alpha
9 years ago
0.0.25-alpha
9 years ago
0.0.24-alpha
9 years ago
0.0.23-alpha
9 years ago
0.0.22-alpha
9 years ago
0.0.21-alpha
9 years ago
0.0.20-alpha
9 years ago
0.0.15-alpha
9 years ago
0.0.14-alpha
9 years ago