chore: extract fs extractor code (#1972)
This commit is contained in:
+14
-1
@@ -122,7 +122,7 @@ export interface ResolvedFreshConfig {
|
||||
outDir: string;
|
||||
target: string | string[];
|
||||
};
|
||||
render?: RenderFunction;
|
||||
render: RenderFunction;
|
||||
plugins: Plugin[];
|
||||
staticDir: string;
|
||||
router?: RouterOptions;
|
||||
@@ -180,6 +180,19 @@ export interface PageProps<T = any, S = Record<string, unknown>> {
|
||||
state: S;
|
||||
}
|
||||
|
||||
export interface StaticFile {
|
||||
/** The URL to the static file on disk. */
|
||||
localUrl: URL;
|
||||
/** The path to the file as it would be in the incoming request. */
|
||||
path: string;
|
||||
/** The size of the file. */
|
||||
size: number;
|
||||
/** The content-type of the file. */
|
||||
contentType: string;
|
||||
/** Hash of the file contents. */
|
||||
etag: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Context passed to async route components.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user