chore: cleanup unused exported interfaces (#2535)
This commit is contained in:
@@ -39,11 +39,6 @@ export type ListenOptions = Partial<Deno.ServeTlsOptions> & {
|
|||||||
remoteAddress?: string;
|
remoteAddress?: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
export interface RouteCacheEntry<T> {
|
|
||||||
params: Record<string, string>;
|
|
||||||
handler: MiddlewareFn<T>;
|
|
||||||
}
|
|
||||||
|
|
||||||
export let getRouter: <State>(app: App<State>) => Router<MiddlewareFn<State>>;
|
export let getRouter: <State>(app: App<State>) => Router<MiddlewareFn<State>>;
|
||||||
// deno-lint-ignore no-explicit-any
|
// deno-lint-ignore no-explicit-any
|
||||||
export let getIslandRegistry: (app: App<any>) => ServerIslandRegistry;
|
export let getIslandRegistry: (app: App<any>) => ServerIslandRegistry;
|
||||||
|
|||||||
@@ -1,10 +1,6 @@
|
|||||||
import * as path from "@std/path";
|
import * as path from "@std/path";
|
||||||
import type { Mode } from "./runtime/server/mod.ts";
|
import type { Mode } from "./runtime/server/mod.ts";
|
||||||
|
|
||||||
export interface FreshPlugin {
|
|
||||||
name: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface FreshConfig {
|
export interface FreshConfig {
|
||||||
root?: string;
|
root?: string;
|
||||||
build?: {
|
build?: {
|
||||||
|
|||||||
@@ -1,10 +1,5 @@
|
|||||||
import { walk, type WalkEntry, type WalkOptions } from "@std/fs/walk";
|
import { walk, type WalkEntry, type WalkOptions } from "@std/fs/walk";
|
||||||
|
|
||||||
export interface FreshFile {
|
|
||||||
size: number;
|
|
||||||
readable: ReadableStream<Uint8Array>;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface FsAdapter {
|
export interface FsAdapter {
|
||||||
cwd(): string;
|
cwd(): string;
|
||||||
walk(
|
walk(
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
export { App, type ListenOptions, type RouteCacheEntry } from "./app.ts";
|
export { App, type ListenOptions } from "./app.ts";
|
||||||
export { trailingSlashes } from "./middlewares/trailing_slashes.ts";
|
export { trailingSlashes } from "./middlewares/trailing_slashes.ts";
|
||||||
export { fsRoutes, type FsRoutesOptions } from "./plugins/fs_routes/mod.ts";
|
export { fsRoutes, type FsRoutesOptions } from "./plugins/fs_routes/mod.ts";
|
||||||
export {
|
export {
|
||||||
|
|||||||
@@ -28,12 +28,6 @@ export interface RouteConfig {
|
|||||||
skipAppWrapper?: boolean;
|
skipAppWrapper?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface SignalLike<T> {
|
|
||||||
value: T;
|
|
||||||
peek(): T;
|
|
||||||
subscribe(fn: (value: T) => void): () => void;
|
|
||||||
}
|
|
||||||
|
|
||||||
// TODO: Uncomment once JSR supports global types
|
// TODO: Uncomment once JSR supports global types
|
||||||
// declare global {
|
// declare global {
|
||||||
// namespace preact.createElement.JSX {
|
// namespace preact.createElement.JSX {
|
||||||
|
|||||||
Reference in New Issue
Block a user