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

Support non-object types #1

Open
stelcheck opened this issue Nov 10, 2017 · 0 comments
Open

Support non-object types #1

stelcheck opened this issue Nov 10, 2017 · 0 comments
Assignees

Comments

@stelcheck
Copy link
Member

Topic instances should be allowed to be:

  • Numbers
  • Booleans
  • String

... and so on.

Suggestion:

export default class extends ValidatedTopic {
  /**
   * Topic configuration
   */
  public static index = ['userId']
  public static indexType = Index
  public static vaults = {
    someVault: {}
  }
  
  /**
   * TODO: how do we specify validation?
   */
  public static type = number
}
```/
@stelcheck stelcheck self-assigned this Nov 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant