0.0.32 • Published 6 months ago

@types/persona v0.0.32

Weekly downloads
59
License
MIT
Repository
github
Last release
6 months ago

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

8 months ago

0.0.31

7 months ago

0.0.32

6 months ago

0.0.29

3 years ago

0.0.28

8 years ago

0.0.27

8 years ago

0.0.26-alpha

8 years ago

0.0.25-alpha

8 years ago

0.0.24-alpha

8 years ago

0.0.23-alpha

8 years ago

0.0.22-alpha

8 years ago

0.0.21-alpha

8 years ago

0.0.20-alpha

8 years ago

0.0.15-alpha

8 years ago

0.0.14-alpha

8 years ago