Type conventions

How ngwr declares and exports its public types.

Conventions

RuleExample
An object shape is an interface, so you can extends it.WrTableColumn
A union or an alias is a type.WrColor, Maybe<T>
Import a type from the entry point that uses it.ngwr/select exports WrSelectMode
Shared aliases live in ngwr/utils.Maybe<T>, SafeAny, WrClassInput

Import

import type { WrSelectMode } from 'ngwr/select';
import type { Maybe } from 'ngwr/utils';

interface Filters {
  mode: WrSelectMode;
  owner: Maybe<string>;
}

See also