Erioifpuderio.hashnode.dev·Nov 17, 2024对表单值进行 TypeScript 类型推断解释 简单来说就是,你通过表单描述去定义了表单的属性,然后你现在要做一个表单值对象,这个对象的属性名、值类型都得是描述里面出现过的。 // config [ { name: 'link', type: 'string', }, { name: 'age', type: 'number', } ] // 合法的 value { link: '', age: 0, } // 不合法的 value { link: 666, age: ...TypeScript
Sadra Yahyapourblog.imsadra.me·Nov 3, 2024FeaturedGeneric Typing in PythonSince Python introduced the ability to add generic types to functions, the language has become much more type-friendly and encourages you to follow this convention for more maintainable code. Obviously, this will lead to a better development experien...31 likes·944 readsPython Generics