Initial round of typescripting
This commit is contained in:
parent
dbef06269b
commit
4488947eed
10 changed files with 316 additions and 24 deletions
|
|
@ -3,6 +3,7 @@ import {
|
|||
adjectives,
|
||||
colors,
|
||||
animals,
|
||||
Config,
|
||||
} from "unique-names-generator";
|
||||
|
||||
const elements = [
|
||||
|
|
@ -126,7 +127,7 @@ const elements = [
|
|||
"oganesson",
|
||||
];
|
||||
|
||||
export function generateRandomName(config) {
|
||||
export function generateRandomName(config: Config): string {
|
||||
return uniqueNamesGenerator({
|
||||
dictionaries: [colors, adjectives, animals, elements],
|
||||
style: "lowerCase",
|
||||
Loading…
Add table
Add a link
Reference in a new issue