@types/gravatar
TypeScript icon, indicating that this package has built-in type declarations

1.8.6 • Public • Published

Installation

npm install --save @types/gravatar

Summary

This package contains type definitions for gravatar (https://github.com/emerleite/node-gravatar).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gravatar.

index.d.ts

export type Protocol = false | "http" | true | "https";

export interface Options {
    cdn?: string | undefined;
    d?: string | undefined;
    default?: string | undefined;
    f?: string | undefined;
    forcedefault?: string | undefined;
    format?: string | undefined;
    protocol?: Protocol | undefined;
    r?: string | undefined;
    rating?: string | undefined;
    s?: string | undefined;
    size?: string | undefined;
}

/**
 * @param email - The gravatar email
 * @param [options] - Query string options
 * @param [protocol] - Define if will use no protocol, http or https gravatar URL.
 * Default is 'undefined', which generates URLs without protocol.
 * True to force https and false to force http
 */
export function url(email: string, options?: Options, protocol?: boolean): string;
/**
 * @param email - The gravatar email
 * @param [options] - Query string options
 * @param [protocol] - Define if will use no protocol, http or https gravatar URL.
 * Default is 'undefined', which generates URLs without protocol.
 * True to force https and false to force http
 */
export function profile_url(email: string, options?: Options, protocol?: boolean): string;

Additional Details

  • Last updated: Tue, 07 Nov 2023 03:09:37 GMT
  • Dependencies: none

Credits

These definitions were written by Denis Sokolov, and Piotr Błażejewicz.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/gravatar

Weekly Downloads

9,724

Version

1.8.6

License

MIT

Unpacked Size

5.14 kB

Total Files

5

Last publish

Collaborators

  • types