Switched postProcess to just take a function
Updated JSdoc signature on registerBuildType