/**
 * The non-primitive types Boolean, Number, Object and String should not be
 * used, but their primitive counterpart (or `object`):
 *
 * https://www.typescriptlang.org/docs/handbook/declaration-files/do-s-and-don-ts.html#general-types
 */ export function replaceNonPrimitiveType ( type ) { switch ( type ) { case 'Boolean' : case 'Number' : case 'Object' : case 'String' : return type . toLowerCase ( ) ; default : return type ; } }