fix: resolve TypeScript and lint issues
- Fix proxy routes to use resolveImagerBase instead of removed resolveUpstreamBase - Fix avatarImageUrl type signature to use AvatarOptions - Run biome formatter
This commit is contained in:
1 parent
fc7e6ca248
commit
7a2c0fd4d4
19 files changed
+86
-164
No files matched your search
+2
-9
@@ -1,16 +1,9 @@
|
||||
import { getNewFormatFigure } from "@/lib/figure-convert";
|
||||
import { getAvatarUrl } from "@/lib/imager";
|
||||
import type { AvatarOptions } from "@/types/admin";
|
||||
|
||||
/** Build a Habbo avatar-imager URL for a figure string. */
|
||||
export function avatarImageUrl(
|
||||
look: string,
|
||||
opts: {
|
||||
size?: "s" | "m" | "l";
|
||||
headOnly?: boolean;
|
||||
direction?: number;
|
||||
headDirection?: number;
|
||||
} = {},
|
||||
): string {
|
||||
export function avatarImageUrl(look: string, opts: AvatarOptions = {}): string {
|
||||
const figure = getNewFormatFigure(look);
|
||||
return getAvatarUrl(figure, opts);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user