krapio
Library referenceTypes

Envelope<T>

type Envelope<T> = {
  data: T;
  error:   | null
     | string
     | {
     code?: string;
     message?: string;
   };
};

the reply envelope of gapi.svc.krunker.io, a non-null error comes with a 4xx or 5xx

Type Parameters

Type Parameter
T

Properties

PropertyType
dataT
error| null | string | { code?: string; message?: string; }

On this page