INNER CODE UNIT · TypeScript

isString

thebigredgeek/apollo-errors · src/index.ts:4

const isString = d => Object.prototype.toString.call(d) === '[object String]';
const isObject = d => Object.prototype.toString.call(d) === '[object Object]';

export interface ErrorConfig {
  message: string;
  time_thrown?: string;
  data?: object;
  internalData?: object;
  options?: {
    showPath?: boolean;
    showLocations?: boolean;
  };
}

export interface ErrorInfo {
  message: string;
  name: string;
  time_thrown: string;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…