Skip to content

Commit

Permalink
fix: (typescript) make property readonly
Browse files Browse the repository at this point in the history
  • Loading branch information
gurgunday committed Aug 14, 2024
1 parent 390ca92 commit 33968d1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/html.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const escapeFunction = (string) => {
};

/**
* @param {{ raw: string[] }} literals Tagged template literals.
* @param {{ raw: Readonly<string[]> }} literals Tagged template literals.
* @param {...any} expressions Expressions to interpolate.
* @returns {string} The HTML string.
*/
Expand Down Expand Up @@ -72,7 +72,7 @@ const html = ({ raw: literals }, ...expressions) => {
};

/**
* @param {{ raw: string[] }} literals Tagged template literals.
* @param {{ raw: Readonly<string[]> }} literals Tagged template literals.
* @param {...any} expressions Expressions to interpolate.
* @yields {string} The HTML strings.
*/
Expand Down Expand Up @@ -166,7 +166,7 @@ const htmlGenerator = function* ({ raw: literals }, ...expressions) {
};

/**
* @param {{ raw: string[] }} literals Tagged template literals.
* @param {{ raw: Readonly<string[]> }} literals Tagged template literals.
* @param {...any} expressions Expressions to interpolate.
* @yields {string} The HTML strings.
*/
Expand Down

0 comments on commit 33968d1

Please sign in to comment.