TypeScript supports export = to model the traditional CommonJS and AMD workflow. The export = syntax specifies a single object that is exported from the module. This can be a class, interface, namespace, function, or enum.
What does export mean in angular?
Similarly, the export keyword lets you declare variables, functions, and classes that the module should be exposed to other scripts. Using the export keyword, you can make selected APIs available to other modules. A module’s functions, variables, and classes that aren’t explicitly exported remain private to the module.
Can we export function in TypeScript?
YES, TypeScript can export a function!