In a large saucepan, whisk together sugar, cornstarch, cinnamon, nutmeg, and salt.
Add water and bring to a gentle boil, whisking until smooth and thickened.
Stir in the apple slices and lemon juice.
Cook for about 10 minutes until apples are tender but not mushy.
Remove from heat and let cool slightly before using as pie filling or storing.