| Rule | Example |
|---|---|
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 |
Type conventions
How ngwr declares and exports its public types.
Conventions
Import
import type { WrSelectMode } from 'ngwr/select';
import type { Maybe } from 'ngwr/utils';
interface Filters {
mode: WrSelectMode;
owner: Maybe<string>;
}