msoffice-addin
Version:
Microsoft office addin module for Nuxt abd vite
23 lines (21 loc) • 706 B
text/typescript
type EnvKey = `VITE_${string}` | `NUXT_${string}`;
interface ManifestEntry {
src: string;
/**
* Where manifest will be generated as `{domain}/{route}`
*/
route: `/${string}.xml`;
}
interface MSOfficeAddinConfig {
/** Input manifests */
manifests: ManifestEntry[];
/** Routes where office.js will be injected */
injectOfficeJS: (string | RegExp)[];
/**
* Use this hook to define additional env variables.
* Variables must be prefixed with `NUXT_` or `VITE_`
* @param env ENV variables loaded from your environment
*/
defineENV?: (env: Readonly<ImportMetaEnv & object>) => Record<EnvKey, string>;
}
export type { MSOfficeAddinConfig as M };