Skip to content

Commit 04c18ab

Browse files
committed
fix: EventEmitter.prototype does not exist
- err: Property 'prototype' does not exist on type 'typeof EventEmitter'
1 parent f1699a4 commit 04c18ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/service-module/make-base-model.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { globalModels, prepareAddModel } from './global-models'
88
import { mergeWithAccessors, checkNamespace, getId } from '../utils'
99
import _merge from 'lodash/merge'
1010
import _get from 'lodash/get'
11-
import EventEmitter from 'events'
11+
import { EventEmitter } from 'events'
1212

1313
// A hack to prevent error with this.constructor.preferUpdate
1414
interface Function {

0 commit comments

Comments
 (0)