(self: Context<Services>, key: string)
| 1065 | |
| 1066 | /** @internal */ |
| 1067 | export const getOrUndefinedUnsafe = <A, Services = never>(self: Context<Services>, key: string): A | undefined => { |
| 1068 | const value = lookup(self, key) |
| 1069 | return value === notFound ? undefined : value as A |
| 1070 | } |
| 1071 | |
| 1072 | /** |
| 1073 | * Gets the service for a key, throwing if an absent non-reference key cannot be |