Created
September 26, 2017 17:33
-
-
Save mohsen1/9ea09188b7873305cccf1993da824106 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
/** | |
* Create an input element | |
*/ | |
function createInput(type: 'text', value: string): HTMLInputElement; | |
function createInput(type: 'checkbox', value: boolean): HTMLInputElement; | |
function createInput(type, value) { | |
// code | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment