import { AnswersQuestions , Question , UsesAbilities } from '@serenity-js/core' ; private param actor param maybeQuestion param fn export function withAnswerOf < T , O > ( actor , maybeQuestion , fn ) { const answer = Question . isAQuestion ( maybeQuestion ) ? maybeQuestion . answeredBy ( actor ) : maybeQuestion ; return fn ( answer ) ; }