Fix typing (#420)

This commit is contained in:
Michael Telatynski 2022-09-23 11:04:38 +01:00 committed by GitHub
parent ebf7d88710
commit b89b2637b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -179,7 +179,7 @@ export const TARGETS: Record<TargetId, Target> = {
'powerpc64le-unknown-linux-gnu': powerpc64leUnknownLinuxGnu, 'powerpc64le-unknown-linux-gnu': powerpc64leUnknownLinuxGnu,
}; };
export function getHost(): Target { export function getHost(): Target | undefined {
return Object.values(TARGETS).find(target => ( return Object.values(TARGETS).find(target => (
target.platform === process.platform && target.platform === process.platform &&
target.arch === process.arch && target.arch === process.arch &&