Function
getNumberProp
(
record: Record<string, unknown> | undefined,
key: string
)
Source from the content-addressed store, hash-verified
| 54 | } |
| 55 | |
| 56 | export function getNumberProp( |
| 57 | record: Record<string, unknown> | undefined, |
| 58 | key: string |
| 59 | ): number | undefined { |
| 60 | const value = record?.[key] |
| 61 | return typeof value === 'number' ? value : undefined |
| 62 | } |
| 63 | |
| 64 | function falQueueUrl(endpoint: string, requestId: string, path: 'status' | 'response'): string { |
| 65 | return `https://queue.fal.run/${endpoint}/requests/${requestId}/${path}` |
Tested by
no test coverage detected