fix(build): 🐛 Fix builds for JSR support

This commit is contained in:
Jesse Wierzbinski 2024-05-13 22:35:25 -10:00
parent 0d53c450f8
commit f5fd4c0a04
No known key found for this signature in database
6 changed files with 13 additions and 16 deletions

View file

@ -5,7 +5,7 @@
* @see https://lysand.org/extensions/vanity
*/
import { z } from "zod";
import { type AnyZodObject, ZodObject, z } from "zod";
import { ContentFormat } from "../content_format";
/**

View file

@ -18,7 +18,7 @@ import {
/**
* Regular expression for matching emojis.
*/
export const emojiRegex = createRegExp(
export const emojiRegex: RegExp = createRegExp(
// A-Z a-z 0-9 _ -
oneOrMore(letter.or(digit).or(exactly("_")).or(exactly("-"))),
[caseInsensitive, global],
@ -28,7 +28,7 @@ export const emojiRegex = createRegExp(
* Regular expression for matching an extension_type
* @example org.lysand:custom_emojis/Emoji
*/
export const extensionTypeRegex = createRegExp(
export const extensionTypeRegex: RegExp = createRegExp(
// org namespace, then colon, then alphanumeric/_/-, then extension name
exactly(
oneOrMore(exactly(letter.lowercase.or(digit).or(charIn("_-.")))),