1141
return undefined;
1142
}
1144
>
const result: {
1145
>
hasGitHubRemote?: boolean;
1146
>
branchName?: string;
1147
>
baseBranchName?: string;
1148
>
upstreamBranchName?: string;
1149
>
incomingChanges?: number;
1150
>
outgoingChanges?: number;
1151
>
uncommittedChanges?: number;
1152
>
githubOwner?: string;
1153
>
githubRepo?: string;
1154
>
} = {};
1155
>
if (typeof raw['hasGitHubRemote'] === 'boolean') { result.hasGitHubRemote = raw['hasGitHubRemote']; }
1156
>
if (typeof raw['branchName'] === 'string') { result.branchName = raw['branchName']; }
1157
>
if (typeof raw['baseBranchName'] === 'string') { result.baseBranchName = raw['baseBranchName']; }
1158
>
if (typeof raw['upstreamBranchName'] === 'string') { result.upstreamBranchName = raw['upstreamBranchName']; }
1159
>
if (typeof raw['incomingChanges'] === 'number') { result.incomingChanges = raw['incomingChanges']; }
1160
>
if (typeof raw['outgoingChanges'] === 'number') { result.outgoingChanges = raw['outgoingChanges']; }
1161
>
if (typeof raw['uncommittedChanges'] === 'number') { result.uncommittedChanges = raw['uncommittedChanges']; }
1162
>
if (typeof raw['githubOwner'] === 'string') { result.githubOwner = raw['githubOwner']; }
1163
>
if (typeof raw['githubRepo'] === 'string') { result.githubRepo = raw['githubRepo']; }
1164
>
return result;
1165
>
}
1166
1167
/**