Lwc Public API Hardening

Use when an LWC exposes `@api` properties, `@api` methods, or design attributes in `<targetConfig>` and you need a defensive, predictable public contract. Covers runtime type coercion (the `@api` decorator does NOT validate types), required-prop checks, and design attributes. NOT for component-to-component messaging (use lwc/component-communication) or reactive state — use lwc/lwc-reactive-state-patterns.

PranavNagrecha 6bb3def 7 files · 67.3 KB Updated 15 repo stars

File contents

PranavNagrecha/AwesomeSalesforceSkills/tree/main/skills/lwc/lwc-public-api-hardening commit 6bb3def0d1

Frequently asked questions

npx skillmds add pranavnagrecha/lwc-public-api-hardening