Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Natspec model - method key number -> string #2

Open
loredanacirstea opened this issue Feb 24, 2020 · 0 comments
Open

Fix Natspec model - method key number -> string #2

loredanacirstea opened this issue Feb 24, 2020 · 0 comments
Labels
server Server issue

Comments

@loredanacirstea
Copy link
Member

@model()
export class NatspecMethods extends Model {
  [prop: number]: NatspecMethod;

  constructor(data?: Partial<NatspecMethods>) {
    super(data);
  }
}

https://github.com/loredanacirstea/dType-pipeos-contracts/commit/04813ea289fb43a693d758b5eb2d69863be195b6#diff-2b290993f649c2c4d2dcb4d6bf564c33R45

For some reason, string was not allowed, even though in theory, number and string are the only ones allowed.

@loredanacirstea loredanacirstea added the server Server issue label Feb 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
server Server issue
Projects
None yet
Development

No branches or pull requests

1 participant