If you want to define a named type in TypeScript, you have two options. You can use a type as show here: type TState = { name: string; ...
確定! 回上一頁