export function sanitizeTypeName()

in src/util.ts [9:17]


export function sanitizeTypeName(typeName: string) {
  const parts = typeName.split('::');
  const lastParts = [parts[parts.length - 1]];
  if (lastParts[0].toUpperCase() === 'MODULE') {
    lastParts.unshift(parts[parts.length - 2]);
  }

  return lastParts.map(p => Case.pascal(p)).join('');
}