當前位置: 首頁>>代碼示例>>TypeScript>>正文


TypeScript eligibilityCheck.notEligible函數代碼示例

本文整理匯總了TypeScript中eligibility/model/eligibilityCheck.notEligible函數的典型用法代碼示例。如果您正苦於以下問題:TypeScript notEligible函數的具體用法?TypeScript notEligible怎麽用?TypeScript notEligible使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了notEligible函數的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。

示例1: checkEligibility

 checkEligibility (value: ClaimType): EligibilityCheck {
   switch (value) {
     case ClaimType.PERSONAL_CLAIM:
       return eligible()
     case ClaimType.MULTIPLE_CLAIM:
       return notEligible(NotEligibleReason.MULTIPLE_CLAIMANTS)
     case ClaimType.REPRESENTATIVE_CLAIM:
       return notEligible(NotEligibleReason.CLAIM_ON_BEHALF)
     default:
       throw new Error(`Unexpected ClaimType: ${value.option}`)
   }
 }
開發者ID:hmcts,項目名稱:cmc-citizen-frontend,代碼行數:12,代碼來源:claim-type.ts

示例2: checkEligibility

 checkEligibility (value: ClaimValue): EligibilityCheck {
   switch (value) {
     case ClaimValue.NOT_KNOWN:
       return notEligible(NotEligibleReason.CLAIM_VALUE_NOT_KNOWN)
     case ClaimValue.OVER_10000:
       return notEligible(NotEligibleReason.CLAIM_VALUE_OVER_10000)
     case ClaimValue.UNDER_10000:
       return eligible()
     default:
       throw new Error(`Unexpected claim value: ${value.option}`)
   }
 }
開發者ID:hmcts,項目名稱:cmc-citizen-frontend,代碼行數:12,代碼來源:claim-value.ts

示例3: checkEligibility

 checkEligibility (value: DefendantAgeOption): EligibilityCheck {
   switch (value) {
     case DefendantAgeOption.YES:
       return eligible()
     case DefendantAgeOption.COMPANY_OR_ORGANISATION:
       return eligible()
     case DefendantAgeOption.NO:
       return notEligible(NotEligibleReason.UNDER_18_DEFENDANT)
     default:
       throw new Error(`Unexpected claim value: ${value.option}`)
   }
 }
開發者ID:hmcts,項目名稱:cmc-citizen-frontend,代碼行數:12,代碼來源:defendant-age.ts

示例4: checkEligibility

 checkEligibility (value: YesNoOption): EligibilityCheck {
   return value === YesNoOption.YES ? eligible() : notEligible(NotEligibleReason.DEFENDANT_ADDRESS)
 }
開發者ID:hmcts,項目名稱:cmc-citizen-frontend,代碼行數:3,代碼來源:defendant-address.ts

示例5: checkEligibility

 checkEligibility (value: YesNoOption): EligibilityCheck {
   return value === YesNoOption.NO ? eligible() : notEligible(NotEligibleReason.HELP_WITH_FEES)
 }
開發者ID:hmcts,項目名稱:cmc-citizen-frontend,代碼行數:3,代碼來源:help-with-fees.ts

示例6: checkEligibility

 checkEligibility (value: YesNoOption): EligibilityCheck {
   return value === YesNoOption.NO ? eligible() : notEligible(NotEligibleReason.CLAIM_IS_FOR_TENANCY_DEPOSIT)
 }
開發者ID:hmcts,項目名稱:cmc-citizen-frontend,代碼行數:3,代碼來源:claim-is-for-tenancy-deposit.ts

示例7: checkEligibility

 checkEligibility (value: YesNoOption): EligibilityCheck {
   return value === YesNoOption.NO ? eligible() : notEligible(NotEligibleReason.GOVERNMENT_DEPARTMENT)
 }
開發者ID:hmcts,項目名稱:cmc-citizen-frontend,代碼行數:3,代碼來源:government-department.ts

示例8: checkEligibility

 checkEligibility (value: YesNoOption): EligibilityCheck {
   return value === YesNoOption.NO ? eligible() : notEligible(NotEligibleReason.MULTIPLE_DEFENDANTS)
 }
開發者ID:hmcts,項目名稱:cmc-citizen-frontend,代碼行數:3,代碼來源:single-defendant.ts

示例9: checkEligibility

 checkEligibility (value: YesNoOption): EligibilityCheck {
   return value === YesNoOption.YES ? eligible() : notEligible(NotEligibleReason.UNDER_18)
 }
開發者ID:hmcts,項目名稱:cmc-citizen-frontend,代碼行數:3,代碼來源:over-18.ts


注:本文中的eligibility/model/eligibilityCheck.notEligible函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。