This file contains 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
/** | |
A (contrived) example of conditional types with `never`. | |
*/ | |
/** Gets keys that have string values from object T. */ | |
type StringPropertyNames<T> = { | |
[K in keyof T]: T[K] extends string ? K : never; | |
}[keyof T]; | |
/** |
This file contains 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
# Send a request to recaptcha to verify the user's input. | |
# | |
# The first argument must be an object containing four parts: | |
# privatekey: Your recaptcha private key. | |
# remoteip: The IP of the user who submitted the form. | |
# challenge: The challenge value from the recaptcha form. | |
# response: The user's response to the captcha. | |
# | |
# Example usage (express): | |
# |