Answer the question
In order to leave comments, you need to log in
How to resolve error TS2339: Property 'xxx' does not exist on type 'yyy'?
There is a class:
export default class BaseModel {
_: {} = {}
constructor (options: OptionsInterface) {
const { model, aliases } = options
Object.keys(aliases).forEach(key => {
const alias = aliases[key]
this._[alias] = model[key]
})
}
}
TS2339: Property '_' does not exist on type 'BaseModel'
object
(error: ESLint: 'object' is not defined.(no-undef))? Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question