Interface: NcpdpWarningPartition<W>
The result of partitionWarnings: warnings split into those a profile leads you to EXPECT and those it does not. Preserves the input warning type.
Example
import type { NcpdpWarningPartition } from "@cosyte/ncpdp/profiles";
import type { NcpdpTelecomWarning } from "@cosyte/ncpdp/telecom";
declare const p: NcpdpWarningPartition<NcpdpTelecomWarning>;
p.unexpected.length; // alert only on these
Type Parameters
W
W extends object
Properties
expected
readonlyexpected: readonlyW[]
unexpected
readonlyunexpected: readonlyW[]