Skip to content

tryParseHexKey

tryParseHexKey(key): HexCoordinates | undefined

Defined in: src/coordinates/coordinates.ts:96

Non-throwing variant of parseHexKey. Returns undefined when the key is malformed. Use this on lookup paths where a miss is expected; use parseHexKey on assertion paths where a miss is a programming error.

string

HexCoordinates | undefined