Whisk egg yolks, sugar and cornstarch in a bowl until pale and smooth, with no visible lumps of cornstarch left.
Heat milk in a small saucepan until it steams but doesn't boil, then pour it slowly into the egg mixture while whisking constantly, so the eggs warm gently instead of scrambling.
Return everything to the saucepan and cook over medium-low heat, stirring constantly, until the cream thickens enough to coat the back of a spoon, about 3-4 minutes.
Remove from heat, stir in vanilla, then press plastic wrap directly onto the surface of the cream so a skin doesn't form.
Chill the pastry cream at least 30 minutes, until fully cool and thick enough to hold a piped line.
Spoon or pipe the cooled cream into each tart shell, filling to just below the rim.
Arrange sliced fruit over the cream in a tight overlapping pattern, starting from the outside edge and working in.
Warm the apricot jam until loose, then brush a thin layer over the fruit; this is what gives tarts their shine and keeps the fruit from drying out.
Serve within a few hours of glazing, since the pastry shells soften once the cream sits in them overnight.