refactor: replace references of options with config (#1903)

This commit is contained in:
Asher Gomez
2023-10-11 09:25:03 +02:00
committed by GitHub
parent 1d12853889
commit 6ddef91d95
28 changed files with 138 additions and 127 deletions
+11 -3
View File
@@ -23,9 +23,17 @@ export interface DenoConfig {
// --- APPLICATION CONFIGURATION ---
export type StartOptions = FreshOptions;
/**
* @deprecated Use {@linkcode FreshConfig} instead
*/
export type StartOptions = FreshConfig;
export interface FreshOptions {
/**
* @deprecated Use {@linkcode FreshConfig} interface instead.
*/
export type FreshOptions = FreshConfig;
export interface FreshConfig {
build?: {
/**
* The directory to write generated files to when `dev.ts build` is run.
@@ -100,7 +108,7 @@ export interface FreshOptions {
onListen?: (params: { hostname: string; port: number }) => void;
}
export interface InternalFreshOptions {
export interface InternalFreshConfig {
dev: boolean;
loadSnapshot: boolean;
denoJsonPath: string;