Answers for "typescript import module"

2

typescript import type

import type { SomeThing } from "./some-module.js";
export type { SomeThing };
Posted by: Guest on February-02-2022
0

typescript module

// module.ts
export const name = 'name'

function fnExample() {
	console.log('Example')
}

export default {
	fnExample
}

// Import module.ts
import modName, { name } from './module.ts'

modName.fnExample()
Posted by: Guest on February-13-2022

Code answers related to "typescript import module"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language