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

refactor: destruct candid service in ic-mgmt #757

Merged
merged 3 commits into from
Nov 20, 2024

Conversation

peterpeterparker
Copy link
Member

@peterpeterparker peterpeterparker commented Nov 20, 2024

Motivation

IDE, or at least Webstorm, cannot resolves the definition of Candid services when those function are not destructed.

Changes

  • Destruct const {something} = this.service in ic-mgmt instead of use this.service.something

Screenshots

Capture d’écran 2024-11-20 à 13 09 10 Capture d’écran 2024-11-20 à 13 09 51

Opening function's definition if destructed:

Capture d’écran 2024-11-20 à 13 17 34

@peterpeterparker peterpeterparker requested review from a team as code owners November 20, 2024 12:16
Copy link
Contributor

github-actions bot commented Nov 20, 2024

size-limit report 📦

Path Size
@dfinity/ckbtc 8.03 KB (0%)
@dfinity/cketh 3.68 KB (0%)
@dfinity/cmc 1.4 KB (0%)
@dfinity/ledger-icrc 4.17 KB (0%)
@dfinity/ledger-icp 15.43 KB (0%)
@dfinity/nns 36.68 KB (0%)
@dfinity/nns-proto 140.98 KB (0%)
@dfinity/sns 16.78 KB (0%)
@dfinity/utils 4.66 KB (0%)
@dfinity/ic-management 3.07 KB (+0.26% 🔺)

@peterpeterparker
Copy link
Member Author

Thanks for the review!

@peterpeterparker peterpeterparker enabled auto-merge (squash) November 20, 2024 13:40
@peterpeterparker peterpeterparker merged commit 11e43df into main Nov 20, 2024
11 checks passed
@peterpeterparker peterpeterparker deleted the refactor/destruct-candid-type branch November 20, 2024 13:42
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.

2 participants