@quasar/app-webpack
Version:
Quasar Framework App CLI with Webpack
72 lines (58 loc) • 2.3 kB
TypeScript
/*******************************************************
* Warning!
*
* LEGACY way of doing it. Use the app-wrappers instead.
*******************************************************/
// These wrappers are into `app`, instead of `ui`, because they are only relevant to people
// using a Quasar CLI project: TS devs using `quasar` package via Vue CLI plugin don't have
// boot files or `quasar.config` file where to use them.
// They are placed in a standalone file into `ui` because they must be reachable as `quasar/wrappers`.
// Not being exposed from `quasar`, they won't trigger the package side-effects when required into
// a file evaluated by Node (in `quasar.config` file, `configure` would be imported as
// `import { configure } from 'quasar'`).
// This is a precaution measure to avoid future hard-to-backtrack bugs.
declare module "quasar/wrappers" {
import type {
BootCallback,
ConfigureCallback,
PrefetchCallback,
RouteCallback,
StoreCallback,
SsrMiddlewareCallback,
SsrCreateCallback,
SsrListenCallback,
SsrCloseCallback,
SsrServeStaticContentCallback,
SsrRenderPreloadTagCallback,
} from "@quasar/app-webpack";
/** Some arguments are available only if you enable the related mode: `store` when using the Store, `ssrContext` when using SSR, etc */
function boot<TState = any>(
callback: BootCallback<TState>
): BootCallback<TState>;
function configure(callback: ConfigureCallback): ConfigureCallback;
function preFetch<TState = any>(
callback: PrefetchCallback<TState>
): PrefetchCallback<TState>;
function route<TState = any>(
callback: RouteCallback<TState>
): RouteCallback<TState>;
function store(callback: StoreCallback): StoreCallback;
function ssrMiddleware(
callback: SsrMiddlewareCallback
): SsrMiddlewareCallback;
function ssrCreate(
callback: SsrCreateCallback
): SsrCreateCallback;
function ssrListen(
callback: SsrListenCallback
): SsrListenCallback;
function ssrClose(
callback: SsrCloseCallback
): SsrCloseCallback;
function ssrServeStaticContent(
callback: SsrServeStaticContentCallback
): SsrServeStaticContentCallback;
function ssrRenderPreloadTag(
callback: SsrRenderPreloadTagCallback
): SsrRenderPreloadTagCallback;
}