fix(getTargetedDoc) return function value