Ported richards-typed-octane.ts to RS