I am typing the configuration and message objects for a small Node.js tool that talks to a PLC. Some examples declare shapes with interface Config { host: string; port: number } and others with type Config = { host: string; port: number }, and both seem to work identically when I assign objects and pass them to functions.
Is this purely a style choice, or are there things one form can do that the other cannot? I would like one consistent rule for the project rather than a mixture.




