TypeScript should throw an error for undocumented features
@cornflour sounds like an eslint rule to me 😅