index.js 388 B

123456789101112131415161718
  1. import { Verification } from '../../../lib/utils/verification/index'
  2. class MyVerification extends Verification {
  3. constructor() {
  4. super()
  5. this.instance = null
  6. }
  7. static getInstance() {
  8. if (!this.instance) {
  9. this.instance = new MyVerification()
  10. }
  11. return this.instance
  12. }
  13. }
  14. let _myVerification = MyVerification.getInstance()
  15. export default _myVerification