Function expectInstanceExport
- expectInstanceExport<Type extends keyof WHFSTypes>(
expectType: Type,
expectData: RecursivePartialTestable<
TypedInstanceExport<NoInfer<Type>>["data"],
>,
options: { partial: true },
): (instance: null | InstanceExport) => trueType Parameters
- Type extends keyof WHFSTypes
Parameters
- expectType: Type
- expectData: RecursivePartialTestable<TypedInstanceExport<NoInfer<Type>>["data"]>
- options: { partial: true }
Returns (instance: null | InstanceExport) => true
- expectInstanceExport<Type extends keyof WHFSTypes>(
expectType: Type,
expectData?: RecursiveTestable<TypedInstanceExport<NoInfer<Type>>["data"]>,
options?: { partial?: false },
): (instance: null | InstanceExport) => trueBuild a test callback whether a field is an expected Instance export
Type Parameters
- Type extends keyof WHFSTypes
Parameters
- expectType: Type
OptionalexpectData: RecursiveTestable<TypedInstanceExport<NoInfer<Type>>["data"]>Optionaloptions: { partial?: false }
Returns (instance: null | InstanceExport) => true
Build a test callback whether a field is an expected Instance export