Created
October 4, 2021 21:25
-
-
Save przemyslawjanpietrzak/bef785d5e4c15f4735264580ef78c002 to your computer and use it in GitHub Desktop.
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
let fn = (buttonSize: BUTTON_SIZES_UNION) => {}; | |
fn('small'); | |
fn('smal'); // Argument of type '"smal"' is not assignable to parameter of type 'BUTTON_SIZES_UNION' | |
let str: string; | |
fn(str); // Argument of type 'string' is not assignable to parameter of type 'BUTTON_SIZES_UNION'. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment