( json: HookJSONOutput, )
| 180 | |
| 181 | // Type guard function to check if response is sync |
| 182 | export function isSyncHookJSONOutput( |
| 183 | json: HookJSONOutput, |
| 184 | ): json is SyncHookJSONOutput { |
| 185 | return !('async' in json && json.async === true) |
| 186 | } |
| 187 | |
| 188 | // Type guard function to check if response is async |
| 189 | export function isAsyncHookJSONOutput( |
no outgoing calls
no test coverage detected