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
/** | |
Convert between rune symbols and values using Base 26 (A=1) | |
Similar rust implementation at https://github.com/ordinals/ord/blob/f3cae5400fdebf31bfd494a02c846a90ea12310d/src/sat.rs#L63 | |
*/ | |
class Rune { | |
constructor(public value: number) { } | |
public get name(): string { | |
let x = this.value; |