4 ms·
Conditional types were introduced in TypeScript 2.8, released March 2018. The sample code from the documentation dates back to 2014: https://web.archive.org/web
by ameliaquining 6y ago
Conditional types were introduced in TypeScript 2.8, released March 2018. The sample code from the documentation dates back to 2014: https://web.archive.org/web/20140407071740/http://www.typescriptlang.org/Handbook#sn-int:~:text=Function%20Argument%20Bivariance https://web.archive.org/web/20140407071740/http://www.typesc...