chore: cleanup unused exported interfaces (#2535)

This commit is contained in:
Reed von Redwitz
2024-06-23 22:45:14 +02:00
committed by GitHub
parent 5a7184ad99
commit 0962a94a11
5 changed files with 1 additions and 21 deletions
-5
View File
@@ -39,11 +39,6 @@ export type ListenOptions = Partial<Deno.ServeTlsOptions> & {
remoteAddress?: string;
};
export interface RouteCacheEntry<T> {
params: Record<string, string>;
handler: MiddlewareFn<T>;
}
export let getRouter: <State>(app: App<State>) => Router<MiddlewareFn<State>>;
// deno-lint-ignore no-explicit-any
export let getIslandRegistry: (app: App<any>) => ServerIslandRegistry;
-4
View File
@@ -1,10 +1,6 @@
import * as path from "@std/path";
import type { Mode } from "./runtime/server/mod.ts";
export interface FreshPlugin {
name: string;
}
export interface FreshConfig {
root?: string;
build?: {
-5
View File
@@ -1,10 +1,5 @@
import { walk, type WalkEntry, type WalkOptions } from "@std/fs/walk";
export interface FreshFile {
size: number;
readable: ReadableStream<Uint8Array>;
}
export interface FsAdapter {
cwd(): string;
walk(
+1 -1
View File
@@ -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 { fsRoutes, type FsRoutesOptions } from "./plugins/fs_routes/mod.ts";
export {
-6
View File
@@ -28,12 +28,6 @@ export interface RouteConfig {
skipAppWrapper?: boolean;
}
export interface SignalLike<T> {
value: T;
peek(): T;
subscribe(fn: (value: T) => void): () => void;
}
// TODO: Uncomment once JSR supports global types
// declare global {
// namespace preact.createElement.JSX {