Skip to content

armgit / mimik

Public Imported from GitHub
0

🎬 A browser extension and desktop app that turns your clicks into step-by-step guides with annotated screenshots πŸ“–

416 B
Raw Blame
import type { PublicPath } from 'wxt/browser';
import { browser } from '#imports';

type HtmlPublicPath = Extract<PublicPath, `${string}.html`>;

export function getExtensionURL(path: PublicPath): string;

export function getExtensionURL(path: `${HtmlPublicPath}${string}`): string;

export function getExtensionURL(path: string): string {
  return (browser.runtime as { getURL(p: string): string }).getURL(path);
}