index: allow `1` or `'h1'` construtor input types
package: add "typescript" as a dev dependency
package: add npm "prepublish" script