这是indexloc提供的服务,不要输入任何密码
Skip to content

[Refactor]: create more types to simplify TuonoConfig management #384

@marcalexiei

Description

@marcalexiei

Probably tuono/config should export type for the options with all required fields to avoid calling many utility types.
E.g.:

interface TuonoConfigServer {
    host: string
     port: number
}

so the config will became something like:

export interface TuonoConfig {
   server?: Partial<TuonoConfigServer>,
  // ...
}

and this will become:

  server: TuonoConfigServer

Tip

I can do this in a separate PR

Originally posted by @marcalexiei in #366 (comment)

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requesttypescriptRequires typescript knowledge

Type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions