Skip to content

Repository files navigation

Types

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.

Install from GitHub

Pin the repository to an immutable version tag:

{
  "dependencies": {
    "@hraness/types": "github:hraness/types#v0.1.1"
  }
}

Then install with Bun:

bun install

Use utility types

import type { JsonValue, NonEmptyArray } from "@hraness/types";

const names = ["Ada"] as const satisfies NonEmptyArray<string>;
const payload = { names } satisfies JsonValue;

Enable the strict reset

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.

Development and contributions

Read CONTRIBUTING.md before opening a pull request.

Report suspected vulnerabilities privately as described in SECURITY.md.

License

MIT

About

A small TypeScript utility-type foundation.

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages