Skip to main content
Version: v0.0.3

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

readonly expected: readonly W[]


unexpected

readonly unexpected: readonly W[]