opsinjs

RegistryLookup

Both call shapes are supported on purpose.

How this is generated

Source: lib/registry.ts. Script: scripts/build-reference.mts. Command: pnpm run generate.

Everything below is copied from the symbol, so a page is improved by improving its doc comment. The API index says why there is a page per symbol and what these pages still do not carry.

RegistryLookup

Both call shapes are supported on purpose.

getRegistryEntry("range-bar", base, style) is what the preview surface and the machine routes call, and it reads naturally at a call site that already has three variables. The object form exists for the one caller that needs to pass a kind, and because a fourth positional argument is where a signature stops being readable.

KindDeclared in
typelib/registry.ts
export type RegistryLookup = string | RegistryQuery

On this page