Skip to content

[Symbol.iterator], [Symbol.unscopables] missing #1218

@skyien

Description

@skyien

Question

  • I've checked documentation and searched for existing issues
  • I tried the spectrum channel
  1. I have model "TaskModel" and export interface ITask extends Instance<typeof TaskModel> {}
  2. Store tasks: types.optional(types.array(TaskModel), [])
  3. Component UnassignedTasksContainer with props
export interface IUnassignedTasksContainerProps {
  tasks: Array<ITask>;
} 
  1. <UnassignedTasksContainer tasks={store.tasks} />
    Type error: Type 'Pick<IMSTArray<IReferenceType<IModelType<ModelPropertiesDeclarationToProperties<{ id: ISimpleType; createdAt: IMaybeNull<IType<number | Date, number, Date>>; updatedAt: IMaybeNull<IType<number | Date, number, Date>>; startedAt: IMaybeNull<...>; ... 22 more ...; customer: IMaybeNull<...>; }>, { ...; }, Extrac...' is missing the following properties from type 'ITask[]': [Symbol.iterator], [Symbol.unscopables] TS2739

3.11.0 VERSION ONLY

Metadata

Metadata

Assignees

No one assigned

    Labels

    TypescriptIssue related to Typescript typingsbugConfirmed bughas PRA Pull Request to fix the issue is available

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions