Positional args with primitive types make me nervous. e.g. function processCss(path: string) {…} Consumers might get confused and think they need to pass a string of CSS. Typescript won’t complain. That’s why I prefer this: function processCss(args: { path: string }) {…}
0 reposts7 likes