(data: unknown)
| 50 | * Type guard to check if data is a spilled data marker |
| 51 | */ |
| 52 | export function isSpilledDataMarker(data: unknown): data is SpilledDataMarker { |
| 53 | return ( |
| 54 | data !== null && |
| 55 | typeof data === 'object' && |
| 56 | (data as Record<string, unknown>)['__spilled__'] === true && |
| 57 | typeof (data as Record<string, unknown>)['storageRef'] === 'string' |
| 58 | ); |
| 59 | } |
| 60 | |
| 61 | /** |
| 62 | * Create a spilled data marker |
no outgoing calls
no test coverage detected