(args: unknown)
| 771 | } |
| 772 | |
| 773 | function getBrokerFileArgs(args: unknown): { |
| 774 | file: unknown |
| 775 | maxBytes: number |
| 776 | offset?: number |
| 777 | length?: number |
| 778 | } { |
| 779 | const record = asRecord(args) |
| 780 | const options = asRecord(record.options) |
| 781 | return { |
| 782 | file: record.file, |
| 783 | maxBytes: clampInlineBytes(options.maxBytes), |
| 784 | offset: getPositiveNumber(options.offset), |
| 785 | length: getPositiveNumber(options.length), |
| 786 | } |
| 787 | } |
| 788 | |
| 789 | function createFunctionRuntimeBrokers( |
| 790 | context: FunctionRouteExecutionContext |
no test coverage detected