Aakash Uniyal
Aakash Uniyal

Reputation: 1559

Typescript : Can we export a function which we have imported in the same file?

common-functions-aggregated.ts

import { blank } from './common-some-specific-functions'

export function getTitlePrefix(key) {
    let prefix: string = "";


    return prefix;
}

export blank

I am trying to import all the functions from various sources and aggregate and export them from only this common-functions-aggregated.ts

How can i achieve this if possible?

Upvotes: 1

Views: 131

Answers (1)

Catalyst
Catalyst

Reputation: 1018

Yes, you can, your syntax was just incorrect:

export { blank };

Upvotes: 3

Related Questions