In a saucepan, whisk together:coconut milkwhole milksugarshredded coconut Heat until steaming (don’t boil).
In a separate bowl, whisk egg yolks, cornstarch, and salt until smooth.
Slowly pour 1 cup of the hot mixture into the yolks while whisking (to temper).
Pour everything back into the saucepan.
Stir continuously over medium heat until thick and pudding-like (3–5 minutes).
Remove from heat and stir in butter, vanilla, and coconut extract.
Pour into the cooled crust.
Press plastic wrap directly on the surface to prevent skin.
Chill for at least 4 hours, preferably overnight.