Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
get typeName() {
let typeName: string;
if (isOperation(this.operation)) {
const {operationName, operationType} = this.operation;
typeName = `${ucFirst(operationName)}${ucFirst(operationType)}Data`;
} else {
const {fragmentName} = this.operation;
typeName = `${ucFirst(fragmentName)}FragmentData`;
}
return this.options.partial
? typeName.replace(/Data$/, 'PartialData')
: typeName;
}