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

WIP TypeScript code refactor #1128

Draft
wants to merge 86 commits into
base: master
Choose a base branch
from
Draft

Conversation

trim21
Copy link
Contributor

@trim21 trim21 commented Apr 14, 2023

based on #1120 #1119

and close #1106

please don't review the details of this PR, it for staging the migration I have made.

all files have aleady been re-written in TS (with minor any)

just wait previous PR to me merged, the we can start to split this PR into smaller patch to seprated PR for code review.

We should migrate base files first, ts file should not import js file.

and minio.js (the Client class) is very large so we should create a typed base class and migrate methods progressively

src/main/client.mts Outdated Show resolved Hide resolved
src/main/errors.mts Outdated Show resolved Hide resolved
src/main/type.ts Outdated Show resolved Hide resolved
src/main/type.ts Outdated Show resolved Hide resolved
@trim21
Copy link
Contributor Author

trim21 commented Apr 14, 2023

@aldy505 I think it would be better to review the seprated pr instead this big one, so we don't need to review same code twice

src/main/s3-endpoints.mts Fixed Show resolved Hide resolved
@trim21 trim21 changed the title [WIP]: TypeScript code refactor TypeScript code refactor (waiting previous PR to be merged) Apr 15, 2023
package.json Outdated Show resolved Hide resolved
@trim21 trim21 force-pushed the refactor-client branch 2 times, most recently from ff18ab5 to 0715ac5 Compare April 23, 2023 09:33
src/internal/type.ts Outdated Show resolved Hide resolved
fflorent pushed a commit to fflorent/minio-js that referenced this pull request Jul 15, 2023
@fflorent fflorent mentioned this pull request Jul 15, 2023
fflorent added a commit to fflorent/minio-js that referenced this pull request Jul 18, 2023
fflorent pushed a commit to fflorent/minio-js that referenced this pull request Jul 18, 2023
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.

Thoughts on converting this project to Typescript?
5 participants