关于如何在我的css中使用道具,我遵循这里的答案( )。我想把initWidth作为一个参数传入,但它的默认设置是300。然后,我将初始数据设置为等于该属性,以便计算属性可以访问它。通过Property 'baseWidth' does not exist on type '{ cssProps(): void; }'.我得到了一个打字错误。我需要为此制作一个新的界面吗? initWidth: { default: 300,},
return
类型记录似乎能够推断递归函数的类型: * Typescript correctly infers the type is * const referencesSelf: () =>means recursion of the functionconst referencesSelf = () => {}; }