Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

typescript namespace

import { CoreApi as MidtransCoreApi } from './lib/coreApi'
import { Snap as MidtransSnap } from './lib/snap'
import { Iris as MidtransIris } from './lib/iris'

export namespace MidtransClient {
	export class CoreApi extends MidtransCoreApi {}
	export class Snap extends MidtransSnap {}
	export class Iris extends MidtransIris {}
}
 
PREVIOUS NEXT
Tagged: #typescript #namespace
ADD COMMENT
Topic
Name
2+3 =