create-mellowtel-extension
Version:
Create a new Mellowtel browser extension with one command
16 lines (14 loc) • 384 B
TypeScript
// Generated by wxt
import "wxt/browser";
declare module "wxt/browser" {
export type PublicPath =
| "/"
| "/background.js"
| "/content-scripts/content.js"
| "/popup.html"
type HtmlPublicPath = Extract<PublicPath, `${string}.html`>
export interface WxtRuntime {
getURL(path: PublicPath): string;
getURL(path: `${HtmlPublicPath}${string}`): string;
}
}