Skip to content

Commit

Permalink
Merge pull request #144 from supercharge/minor-refactorings
Browse files Browse the repository at this point in the history
Minor Refactorings and Alignments
  • Loading branch information
marcuspoehls authored Oct 28, 2023
2 parents eac3e8d + 3525486 commit a838eb6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/contracts/src/http/input-bag.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ export interface InputBag<T> {
* Returns the input value for the given `name`. This method returns
* `undefined` if the input bag doesn’t contain the given `name`.
*/
get<Value = any, Header extends keyof Dict<T> = string> (name: Header): Value | Dict<T>[Header] | undefined
get<Value = any, Header extends keyof Dict<T> = string> (name: Header, defaultValue: Value): Value | Dict<T>[Header]
get<Value = any, Key extends keyof Dict<T> = string> (name: Key): Value | Dict<T>[Key] | undefined
get<Value = any, Key extends keyof Dict<T> = string> (name: Key, defaultValue: Value): Value | Dict<T>[Key]

/**
* Set an input for the given `name` and assign the `value`. This
Expand Down
2 changes: 1 addition & 1 deletion packages/view/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

export { HandlebarsCompiler } from './engines/index.js'
export { ViewManager } from './manager.js'
export { ViewManager } from './view-manager.js'
export { ViewConfigBuilder } from './view-config-builder.js'
export { View } from './view-response.js'
export { ViewServiceProvider } from './view-service-provider.js'
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/view/src/view-service-provider.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

import { ViewManager } from './manager.js'
import { ViewManager } from './view-manager.js'
import { ServiceProvider } from '@supercharge/support'
import { View as ViewResponse } from './view-response.js'
import { HttpResponse, HttpResponseCtor, ViewBuilderCallback } from '@supercharge/contracts'
Expand Down

0 comments on commit a838eb6

Please sign in to comment.