[英]typescript error is not allowed as a variable declaration name.ts
I am using next.js, react, and typescript.我正在使用 next.js、反应和 typescript。
When I use switch as a variable name, I get a typescript error.当我使用 switch 作为变量名时,出现 typescript 错误。
How can I avoid the error?我怎样才能避免错误?
'switch' is not allowed as a variable declaration name.ts(1389)
const Template: Story = (args: AtomSwitchProps) => <Switch {...args} />;
export const switch = Template.bind({});
switch.args = {
};
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.