vite-plugin-virtual-mpa
Version:
Out-of-box MPA plugin for Vite, with html template engine and virtual files support.
7 lines (6 loc) • 418 B
TypeScript
import type { Page } from './api-types';
/**
* This function simply converts the arguments to an array and returns them.
* It helps creating pages configuration with type hints independently outside plugin function.
*/
export declare function createPages<Name extends string, Filename extends string, Tpl extends string>(pages: Page<Name, Filename, Tpl> | Page<Name, Filename, Tpl>[]): Page<Name, Filename, Tpl>[];