@marko/run 0.5.12 → 0.5.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,13 +1,13 @@
1
1
  import { InlineConfig } from "vite";
2
2
  import { NotHandled, NotMatched } from "./namespace";
3
- import type { GetPaths, PostPaths, GetablePath, GetableHref, PostablePath, PostableHref, Platform, HandlerTypeFn, RuntimeModule, AnyRoute, AnyContext, AnyHandler } from "./types";
3
+ import type { AnyContext, AnyHandler, AnyRoute, GetableHref, GetablePath, GetPaths, HandlerTypeFn, Platform, PostableHref, PostablePath, PostPaths, RuntimeModule } from "./types";
4
4
  declare global {
5
5
  var __marko_run__: RuntimeModule;
6
6
  var __marko_run_vite_config__: InlineConfig | undefined;
7
7
  namespace MarkoRun {
8
8
  /** @deprecated use `((context, next) => { ... }) satisfies MarkoRun.Handler` instead */
9
9
  export const route: HandlerTypeFn;
10
- export { GetPaths, PostPaths, GetablePath, GetableHref, PostablePath, PostableHref, Platform, NotHandled, NotMatched, AnyRoute as Route, AnyContext as Context, AnyHandler as Handler, };
10
+ export { AnyContext as Context, GetableHref, GetablePath, GetPaths, AnyHandler as Handler, NotHandled, NotMatched, Platform, PostableHref, PostablePath, PostPaths, AnyRoute as Route, };
11
11
  }
12
12
  }
13
- export type { AppData, Context, DefineApp, Fetch, HandlerTypeFn, HandlerLike, InputObject, Invoke, Match, MultiRouteContext, NextFunction, ParamsObject, Platform, Route, Routes, RouteHandler, RouteWithHandler, RuntimeModule, } from "./types";
13
+ export type { AppData, Context, DefineApp, Fetch, HandlerLike, HandlerTypeFn, InputObject, Invoke, Match, MultiRouteContext, NextFunction, ParamsObject, Platform, Route, RouteHandler, Routes, RouteWithHandler, RuntimeModule, } from "./types";
@@ -1,4 +1,4 @@
1
- import type { InputObject, NextFunction, AnyRoute, Context, MultiRouteContext, RouteHandler, Platform } from "./types";
1
+ import type { AnyRoute, Context, InputObject, MultiRouteContext, NextFunction, Platform, RouteHandler } from "./types";
2
2
  export declare function pageResponse(template: any, input: Record<PropertyKey, unknown>): Response;
3
3
  export declare const NotHandled: typeof MarkoRun.NotHandled;
4
4
  export declare const NotMatched: typeof MarkoRun.NotMatched;
@@ -1,3 +1,3 @@
1
1
  export declare const NotHandled: unique symbol;
2
2
  export declare const NotMatched: unique symbol;
3
- export type { GetPaths, PostPaths, GetablePath, GetableHref, PostablePath, PostableHref, Platform } from "./types";
3
+ export type { GetableHref, GetablePath, GetPaths, Platform, PostableHref, PostablePath, PostPaths, } from "./types";
@@ -1,4 +1,4 @@
1
- import type { Adapter, Route, BuiltRoutes, RoutableFile, RouterOptions } from "../types";
1
+ import type { Adapter, BuiltRoutes, RoutableFile, Route, RouterOptions } from "../types";
2
2
  export declare function renderRouteTemplate(route: Route, getRelativePath: (path: string) => string): string;
3
3
  export declare function renderEntryTemplate(name: string, files: string[], pageInputs?: string[]): string;
4
4
  export declare function renderRouteEntry(route: Route, entriesDir: string): string;
@@ -14,5 +14,5 @@ export declare const RoutableFileTypes: {
14
14
  readonly Error: "500";
15
15
  };
16
16
  export type RoutableFileType = ValuesOf<typeof RoutableFileTypes>;
17
- export type HttpVerb = typeof httpVerbs[number];
17
+ export type HttpVerb = (typeof httpVerbs)[number];
18
18
  export {};