Version: 0.0.1-security1.0.01.1.01.1.11.1.21.1.31.1.41.1.51.1.2691.1.2701.1.2711.1.2721.1.2731.1.2741.1.2751.1.2761.1.2771.1.2781.1.2791.1.2801.1.2811.1.2821.1.2831.1.2841.1.2851.1.2861.1.2871.1.2881.1.2891.1.2901.1.2911.1.2921.1.2931.1.2941.1.2951.1.2961.1.2971.1.2981.1.2991.1.3001.1.3011.1.3021.1.3031.1.3041.1.3051.1.3061.1.3071.1.3081.1.3091.1.3101.1.3111.1.3121.1.3131.1.3141.1.3151.1.3161.1.3171.1.3181.1.3191.1.3201.1.3211.1.3221.1.3231.1.3241.1.3251.1.3261.1.3271.1.3281.1.3291.1.3301.1.3311.1.3321.1.3331.1.3341.1.3351.1.3361.1.3371.1.3381.1.3391.1.3401.1.3411.1.3421.1.3431.1.3441.1.345-17344647503881.1.3451.1.3461.1.3471.1.3481.1.3491.1.3501.1.3531.1.3541.1.3551.1.3561.1.3571.1.3581.1.3591.1.3601.1.3611.1.3621.1.3631.1.3641.1.3651.1.3661.2.01.3.01.3.11.3.21.3.31.3.41.3.51.4.01.4.11.4.31.4.41.5.01.5.11.7.01.7.11.7.21.7.31.7.51.7.61.7.71.7.81.7.91.7.101.7.111.7.121.8.11.8.22.0.02.0.12.0.42.0.52.0.62.0.72.0.82.0.102.0.112.5.02.5.23.0.03.0.13.0.23.0.33.0.43.0.53.0.63.0.73.0.83.0.103.0.113.0.123.0.133.1.13.1.23.1.33.1.44.0.05.0.05.0.15.0.25.0.35.1.05.1.15.1.25.1.35.1.46.0.06.0.1
// for some reason instanceof isnt working reliably
export function isResponse(res: any): res is Response {
return (
res instanceof Response ||
(typeof res.status === 'number' && 'body' in res && typeof res.ok === 'boolean')
)
}