fix type hint of withTablePrefix