chore: cleanup unused exported interfaces (#2535)
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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?: {
|
||||
|
||||
@@ -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
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user