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

chore(html): fix variable name #7

Merged
merged 1 commit into from
Apr 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/contributions/html-contributions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ import { JsonDocsPart } from '@stencil/core/internal/stencil-public-docs';
// https://github.com/JetBrains/web-types/blob/2c07137416e4151bfaf44bf3226dca7f1a5e9bd3/schema/web-types.json#L922
/**
* Generate an array of symbol contributions to the HTML namespace
* @param compnentMetadata the Stencil component metadata to generate info for to contribute to the HTML namespace
* @param componentMetadata the Stencil component metadata to generate info for to contribute to the HTML namespace
*/
export const generateElementInfo = (compnentMetadata: ComponentCompilerMeta[]): ElementInfo[] => {
return compnentMetadata.map((cmpMeta: ComponentCompilerMeta): ElementInfo => {
export const generateElementInfo = (componentMetadata: ComponentCompilerMeta[]): ElementInfo[] => {
return componentMetadata.map((cmpMeta: ComponentCompilerMeta): ElementInfo => {
// avoid serializing parts for css contributions for an element if we can avoid it
let cssParts: CssPart[] | undefined = getDocsParts(cmpMeta.htmlParts, cmpMeta.docs.tags).map((parts) => {
return { name: parts.name, description: parts.docs };
Expand Down