Accepting string or number IDs in TypeScript

Applying the robustness principle to IDs