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

Classes to define response structure from graylog #19

Closed
callumforrester opened this issue Apr 22, 2024 · 5 comments
Closed

Classes to define response structure from graylog #19

callumforrester opened this issue Apr 22, 2024 · 5 comments
Assignees

Comments

@callumforrester
Copy link
Contributor

Graylog sends us data structures that follow patterns. Part of the power of TypeScript is being able to define classes that represent these structures, so that we can

  • Validate that we receive data in the shape we expect
  • Validate that we are using it correctly in our code
  • Have code completion in our IDEs when playing with this data.

For this issue, take the structures that we currently receive from graylog and define classes to represent it, then use them in place of objects.

@TBThomas56
Copy link
Collaborator

#18 (comment)

@TBThomas56
Copy link
Collaborator

#18 (comment)

1 similar comment
@TBThomas56
Copy link
Collaborator

#18 (comment)

@TBThomas56
Copy link
Collaborator

#20 (review)

@TBThomas56
Copy link
Collaborator

#20 (comment)

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

2 participants