Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

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()
 
PREVIOUS NEXT
Tagged: #typescript #module
ADD COMMENT
Topic
Name
6+6 =