Last active
September 9, 2019 16:29
-
-
Save jkao/ce5e0cda2abaa5fba8e4528f0afab4c5 to your computer and use it in GitHub Desktop.
Demo-ing TypeScript checks for S2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import s2 = require('@radarlabs/s2'); | |
// an arbitrary point in the East Village in New York City | |
const cell = s2.CellId.fromToken('89c25977e5d62c4b') | |
cell.id().charAt(0); // compilation error - bigint doesn't have charAt method |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment