Skip to content

Commit 1962625

Browse files
committed
lint: lib/letter-avatars.ts
add typing annotate
1 parent a3d3e89 commit 1962625

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/letter-avatars.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import randomcolor from "randomcolor";
55
import config from "./config";
66

77
// core
8-
export function generateAvatar(name) {
8+
export function generateAvatar(name: string): string {
99
const color = randomcolor({
1010
seed: name,
1111
luminosity: 'dark'
@@ -25,7 +25,7 @@ export function generateAvatar(name) {
2525
return svg
2626
}
2727

28-
export function generateAvatarURL(name, email = '', big = true) {
28+
export function generateAvatarURL(name: string, email = '', big = true): string {
2929
let photo
3030
if (typeof email !== 'string') {
3131
email = '' + name + '@example.com'

0 commit comments

Comments
 (0)