(self: Context<Services>, key: string)
| 946 | |
| 947 | /** @internal */ |
| 948 | export const getOrUndefinedUnsafe = <A, Services = never>(self: Context<Services>, key: string): A | undefined => { |
| 949 | const value = lookup(self, key) |
| 950 | return value === notFound ? undefined : value as A |
| 951 | } |
| 952 | |
| 953 | /** |
| 954 | * Gets the service for a key, throwing if an absent non-reference key cannot be |