ChemPal Documentation - v1.6.0
    Preparing search index...

    Function assertIsAmbeedGetPmsSdsByAmsResponse

    • Type assertion that the given data is a valid AmbeedGetPmsSdsByAmsResponse. Throws if the data does not match the expected structure.

      Parameters

      • data: unknown

        The response data to assert

      Returns asserts data is AmbeedGetPmsSdsByAmsResponse

      Error if the data is not a valid AmbeedGetPmsSdsByAmsResponse

      assertIsAmbeedGetPmsSdsByAmsResponse(response);
      console.log(response.value.sds_list);
      export function assertIsAmbeedGetPmsSdsByAmsResponse(
      data: unknown,
      ): asserts data is AmbeedGetPmsSdsByAmsResponse {
      if (!isAmbeedGetPmsSdsByAmsResponse(data)) {
      throw new Error('assertIsAmbeedGetPmsSdsByAmsResponse failed');
      }
      }