Types is a small, runtime-free TypeScript utility foundation. It re-exports type-fest, adds a readonly NonEmptyArray, and provides an opt-in strict ambient reset.
Pin the repository to an immutable version tag:
{
"dependencies": {
"@hraness/types": "github:hraness/types#v0.1.1"
}
}Then install with Bun:
bun installimport type { JsonValue, NonEmptyArray } from "@hraness/types";
const names = ["Ada"] as const satisfies NonEmptyArray<string>;
const payload = { names } satisfies JsonValue;Add a declaration file to the consuming project:
import "@hraness/types/reset";The package has no runtime entrypoint. TypeScript consumes its declarations under Bundler and NodeNext resolution.
Read CONTRIBUTING.md before opening a pull request.
Report suspected vulnerabilities privately as described in SECURITY.md.
MIT