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

Migrate Loader Utils to TypeScript #235

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

Conversation

TheLarkInn
Copy link
Member

lib/getHashDigest.ts Outdated Show resolved Hide resolved
lib/getHashDigest.ts Outdated Show resolved Hide resolved
lib/getHashDigest.ts Outdated Show resolved Hide resolved
lib/getHashDigest.ts Outdated Show resolved Hide resolved
}
}

hash = new BatchedHash(createXXHash64());
hash = new BatchedHash(createXXHash64() as unknown as Hash);

Choose a reason for hiding this comment

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

This cast is unfortunate. Can it be elimianted?

Copy link
Member Author

Choose a reason for hiding this comment

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

createXXHash64() & createMd4() is of type WasmHash and I'm having a hard time understanding the best way to 'coerce' these together to be typed properly. Advice here is welcomed.

lib/hash/BulkUpdateDecorator.ts Outdated Show resolved Hide resolved
lib/index.ts Outdated Show resolved Hide resolved
lib/interpolateName.ts Outdated Show resolved Hide resolved
@@ -0,0 +1,35 @@
import path from "path";

Choose a reason for hiding this comment

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

Consider renaming this in a separate commit to retain the history.

package.json Outdated Show resolved Hide resolved
@TheLarkInn TheLarkInn requested a review from sokra January 3, 2023 16:24
@TheLarkInn
Copy link
Member Author

@sokra adding you on this review. I'd like some advice on how we'd align the classes between WasmHash instances and regular Hash instances so this is more typesafe.

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Jan 3, 2023

CLA Not Signed

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.

None yet

2 participants