@beltype/common
v0.1.2
Published
The floor BelType's packages stand on: one typed error hierarchy, the grammar of the data-beltype attribute, and one MIME table.
Readme
@beltype/common
The floor BelType's packages stand on. Three modules, zero runtime dependencies:
@beltype/common/errors: one typed hierarchy underBelTypeError(ConfigError,ValidationError,BuildError). Throw a subclass, never a bareError.@beltype/common/data-beltype: the grammar of thedata-beltypeattribute, a space-separated list of words, each a flag (split) or akey:value(pos:135), and the two words the belt writes.@beltype/common/mime: one MIME table, one answer on every path.
Installed as a git dependency for now:
"@beltype/common": "git+ssh://[email protected]/BelType/common.git#v0.1.0"prepare builds dist/, so the install is a built package.
Working on it
pnpm install
pnpm run check # tsc over src and test, strict
pnpm test # node:test, the .ts files run directly
pnpm run build # dist/MIT.
