@rbxts/expect > CustomMethodImpls
CustomMethodImpls type
An object of expect() method names to implementations.
Signature:
type CustomMethodImpls<T> = {
[key: string]: CustomMethodImpl<T>;
};
References: CustomMethodImpl
Remarks
To be used with extendMethods() to add additional methods to expect().
Each key will map to the respective method. So you can add multiple methods at once, or provide alternative namings for the same method.
Example
const equal: CustomMethodImpl<defined> = (...);
extendMethods({
equal: equal,
equals: equal,
eql: equal
});