I mean run-time checks that the user must implement.
For example, in JS you might put these all over your code-base:
if (typeof x !== 'string') {
throw Error('Expected a string');
}