-
-
Notifications
You must be signed in to change notification settings - Fork 42
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
export default as xxx issue #145
Comments
BTW maybe we need to change
to
it works |
@tianyingchun Hi there, sorry for late reply. What is in |
for md5.ts it contains some helper methods
|
@timocov is it a bug? |
Hi @tianyingchun, sorry for late reply (it was quite busy week though). Am I right that the issue is that there is 2 declare function hex_md5(): string;
declare function b64_md5(): string;
declare function hex_hmac_md5(): string;
declare function b64_hmac_md5(): string;
declare const _default: {
hexMd5: typeof hex_md5;
b64Md5: typeof b64_md5;
hexHmacMd5: typeof hex_hmac_md5;
b64HmacMd5: typeof b64_hmac_md5;
};
declare function signForGet(signSecret: string, timestamp: number, reqQuery: Record<string, unknown>, extraSignStr?: string): string;
declare function signForPost(signSecret: string, timestamp: number, reqDataParam: Record<string, unknown>, extraSignStr?: string): string;
declare const _default: { // Error: Cannot redeclare block-scoped variable '_default'
signForGet: typeof signForGet;
signForPost: typeof signForPost;
};
export {
_default as md5,
_default as signMd5,
};
export {}; If so, I'm afraid that this is #116 actually, because TypeScript compiler produces that As workaround you can use trick from #145 (comment) for sure. |
Bug report
Input code
Expected output
Actual output
Additional context
Add any other context about the problem here (CLI options, etc)
The text was updated successfully, but these errors were encountered: