beginner28 minby DevFox

Type aliases (type)

Give a type a name with type and write the name wherever the type goes: on boxes, lists, parameters and results. See that the check opens the name, that messages say Task instead of the whole outline, and that an alias is only a name, so Minutes and TaskId are both number. TaskKit describes a task once, as Task.

  • TypeScript
  • Fundamentals
Type aliases (`type`). Read this lesson at .