(value: string)
| 33 | ); |
| 34 | |
| 35 | export const parseRegistryApplication = (value: string): Application => { |
| 36 | for (const app of Object.values(Application)) { |
| 37 | if (app === value) { |
| 38 | return app; |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | throw new Error( |
| 43 | `Invalid application. Must be one of: '${Object.values(Application).join(', ')}'.`, |
| 44 | ); |
| 45 | }; |
| 46 | |
| 47 | export const searchRegistry = async (opts: { |
| 48 | name: string; |