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