1.8.6 • Published 6 months ago
@types/gravatar v1.8.6
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
// Type definitions for gravatar 1.8
// Project: https://github.com/emerleite/node-gravatar
// Definitions by: Denis Sokolov <https://github.com/denis-sokolov>
// Piotr Błażejewicz <https://github.com/peterblazejewicz>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
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: Thu, 08 Jul 2021 12:02:30 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by Denis Sokolov, and Piotr Błażejewicz.
1.8.6
6 months ago
1.8.5
7 months ago
1.8.4
8 months ago
1.8.3
3 years ago
1.8.2
3 years ago
1.8.1
4 years ago
1.8.0
5 years ago
1.4.28
8 years ago
1.4.27
8 years ago
1.4.26-alpha
8 years ago
1.4.25-alpha
8 years ago
1.4.24-alpha
8 years ago
1.4.23-alpha
8 years ago
1.4.22-alpha
8 years ago
1.4.21-alpha
8 years ago
1.4.20-alpha
8 years ago
1.4.15-alpha
8 years ago
1.4.14-alpha
8 years ago