Created
February 15, 2025 08:04
-
-
Save hyunwoona/92475c7b5c0c8a7f3d6aa3c4196b4cc8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const availabilityCriteria = is.array( | |
is.oneOf( | |
is.obj({ | |
type: is.value('policy_form_versions'), | |
values: is.array(is.value(...formVersionArray)), | |
}), | |
is.obj({ | |
type: is.value('policy_types'), | |
values: is.array(is.value(...policyCategoriesArray)), | |
}) | |
) | |
); | |
export type AvailabilityCriteria = ExtractGuardedType< | |
typeof availabilityCriteria | |
>; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment