Fix typing (#420)
This commit is contained in:
committed by
GitHub
parent
ebf7d88710
commit
b89b2637b9
@@ -179,7 +179,7 @@ export const TARGETS: Record<TargetId, Target> = {
|
||||
'powerpc64le-unknown-linux-gnu': powerpc64leUnknownLinuxGnu,
|
||||
};
|
||||
|
||||
export function getHost(): Target {
|
||||
export function getHost(): Target | undefined {
|
||||
return Object.values(TARGETS).find(target => (
|
||||
target.platform === process.platform &&
|
||||
target.arch === process.arch &&
|
||||
|
||||
Reference in New Issue
Block a user