In a large pot, combine sliced apples, granulated sugar, brown sugar, corn starch, cinnamon, nutmeg, salt, lemon juice, and water.
Cook over medium heat, stirring frequently until the mixture thickens and apples are tender (about 10-15 minutes).
Add vanilla extract if desired and stir.
Ladle the hot apple pie filling into sterilized pint-sized jars, leaving 1-inch headspace.
Wipe jar rims, place sterilized lids, and screw on metal bands until fingertip-tight.
Process in a pressure canner at 10 pounds of pressure for 20 minutes for pint jars.
Allow jars to cool, ensuring they seal properly.