Skip to content

Wrong TS types #825

Open
Open
@cleverocheck

Description

@cleverocheck

Expected behavior and actual behavior

The project has a file, where is the wrong typing (group field) subject to the use of this model in this file (toTransactionStatus method). It says that the field must be of type enum, but in fact it is one of the enum values

Steps to reproduce the problem

import { RepositoryFactoryHttp } from 'symbol-sdk'

const repositoryFactory = new RepositoryFactoryHttp('http://wolf.importance.jp:3000')
const transactionStatusRepository = repositoryFactory.createTransactionStatusRepository()
transactionStatusRepository.getTransactionStatus('30F03BB1E2D422C19E1DEBFFB21C046EF8CD9FB32F5FF7C1A9235792162D20B1').subscribe(transactionStatus => {
    console.log(transactionStatus.group) // check console value and type in TS
})

Specifications like the version of the project, operating system, or hardware

  • sdk version: 1.0.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions