Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import multiavatar from "../esm"; | ||
|
||
export = multiavatar; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
interface AvatarVersion { | ||
part?: | ||
| "00" | ||
| "01" | ||
| "02" | ||
| "03" | ||
| "04" | ||
| "05" | ||
| "06" | ||
| "07" | ||
| "08" | ||
| "09" | ||
| "10" | ||
| "11" | ||
| "12" | ||
| "13" | ||
| "14" | ||
| "15"; | ||
theme?: "A" | "B" | "C"; | ||
} | ||
|
||
/** | ||
* | ||
* @param string The text string that will be converted into the avatar. | ||
* @param sansEnv If this is true, the script returns the final avatar without the circle background (environment part) | ||
* @param ver An optional object to force a specific initial version | ||
*/ | ||
declare function multiavatar( | ||
string: string, | ||
sansEnv?: boolean, | ||
ver?: AvatarVersion | ||
): string; | ||
|
||
export default multiavatar; |