Skip to content

Commit

Permalink
fix: expose types
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Feb 10, 2022
1 parent e18211a commit 66b4973
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ export * from './nitro'
export * from './server/middleware'
export * from './server/dev'
export * from './options'
export * from './types'
File renamed without changes.
File renamed without changes.
7 changes: 3 additions & 4 deletions src/types/nitro.d.ts → src/types/nitro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export interface NitroHooks {
}

type DeepPartial<T> = T extends Record<string, any> ? { [P in keyof T]?: DeepPartial<T[P]> | T[P] } : T
type NitroPreset = string | NitroConfig | ((input: NitroConfig) => NitroConfig)
// type NitroPreset = string | NitroConfig | ((input: NitroConfig) => NitroConfig)

export interface NitroConfig extends DeepPartial<NitroOptions> {
preset?: string
Expand All @@ -40,7 +40,6 @@ export interface NitroOptions {
buildDir: string
generateDir: string
publicDir: string
srcDir: string
modulesDir: string[]
entry: string

Expand Down Expand Up @@ -88,7 +87,7 @@ export interface NitroOptions {
}

commands: {
preview: string | ((config: NitroContext) => string)
deploy: string | ((config: NitroContext) => string)
preview: string | ((nitro: Nitro) => string)
deploy: string | ((nitro: Nitro) => string)
}
}
File renamed without changes.

0 comments on commit 66b4973

Please sign in to comment.