Skip to content

Commit

Permalink
fix: add missing container in options
Browse files Browse the repository at this point in the history
  • Loading branch information
npenin committed Nov 23, 2024
1 parent 95c63b9 commit 38206ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/pm/src/sidecar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import pm from './container.js'

let instance: Sidecar;

export default function (options?: { pm?: pm.container & Container<void> } & (Omit<ConnectionPreference, 'metadata'> | SideCarConnectionPreference | Omit<ConnectionPreference, 'metadata'> & SideCarConnectionPreference), noCache?: boolean): Sidecar
export default function singleton(options?: { pm?: pm.container & Container<void>, container?: Container<unknown> } & (Omit<ConnectionPreference, 'metadata'> | SideCarConnectionPreference | Omit<ConnectionPreference, 'metadata'> & SideCarConnectionPreference), noCache?: boolean): Sidecar
{
return instance || (instance = sidecar(options, noCache));
}
Expand Down

0 comments on commit 38206ea

Please sign in to comment.