Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@driusan
Copy link
Collaborator

@driusan driusan commented Nov 13, 2023

This adds a .d.ts file to accompany the functions defined in jslib/fetchDataStream.d.ts, allowing them to be type checked in typescript with noImplicitAny enabled.

This adds a .d.ts file to accompany the functions defined in
jslib/fetchDataStream.d.ts, allowing them to be type checked in
typescript with noImplicitAny enabled.
rowcb: (row: string[]) => void,
chunkcb: () => void,
endstreamcb: () => void,
method: string
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be good to switch for an enum: 'GET' | 'PUT' | 'POST' | 'PATCH' | 'DELETE'

Copy link
Contributor

@laemtl laemtl Nov 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hum, I don't see this param in the function def: https://github.com/aces/Loris/blob/main/jslib/fetchDataStream.js#L45

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm.. you're right. I wrote the .d.ts file for this: https://github.com/aces/Loris/pull/8907/files#diff-7409e296bbfa103b243c29d76808eae3ed3a59d2b4ec00498e7607b05858a457L56-L60

Do you want me to add the change to the function to this PR too?

Copy link
Contributor

@laemtl laemtl Nov 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see. That's not necessary, I assume you will do the merges in the appropriate order :)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer to do it here to keep them in sync, I'll port it over

@laemtl laemtl self-requested a review November 14, 2023 17:40
@driusan driusan merged commit bde9ee5 into aces:main Nov 14, 2023
@ridz1208 ridz1208 added this to the 26.0.0 milestone Apr 9, 2024
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

Successfully merging this pull request may close these issues.

3 participants