Skip to content
Still using @dfinity/agent? Migrate to @icp-sdk/core!

isV2ResponseBody

isV2ResponseBody(body): body is v2ResponseBody

Defined in: packages/agent/src/agent/api.ts:135

Utility function to check if a body is a v2ResponseBody for type safety.

The body to check

null | v2ResponseBody | v3ResponseBody

body is v2ResponseBody

boolean indicating if the body is a v2ResponseBody