Checks if the assertion passes or if the value is null.

const maybeString = nullable(string);

maybeString(1); // Error: type
maybeString("hello"); // passes
maybeString(null); // passes