supercharge / framework

The Supercharge core code
https://superchargejs.com
MIT License
23 stars 6 forks source link

ContainerBindings: Interface and Declarations #135

Closed marcuspoehls closed 1 year ago

marcuspoehls commented 1 year ago

This pull request defines an extendable ContainerBindings. This interface can be used to define existing container bindings which in turn allow IntelliSense because of TypeScript’s declaration merging.

/**
 * Add container bindings for services from this provider.
 */
declare module '@supercharge/contracts' {
  export interface ContainerBindings {
    'router': HttpRouter
    'server': HttpServer
  }
}