From 33968d1559a1cb1bd8d70585225049328a43790a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCrg=C3=BCn=20Day=C4=B1o=C4=9Flu?= Date: Wed, 14 Aug 2024 14:47:48 +0300 Subject: [PATCH] fix: (typescript) make property readonly --- src/html.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/html.js b/src/html.js index 69c4941..204b3be 100644 --- a/src/html.js +++ b/src/html.js @@ -39,7 +39,7 @@ const escapeFunction = (string) => { }; /** - * @param {{ raw: string[] }} literals Tagged template literals. + * @param {{ raw: Readonly }} literals Tagged template literals. * @param {...any} expressions Expressions to interpolate. * @returns {string} The HTML string. */ @@ -72,7 +72,7 @@ const html = ({ raw: literals }, ...expressions) => { }; /** - * @param {{ raw: string[] }} literals Tagged template literals. + * @param {{ raw: Readonly }} literals Tagged template literals. * @param {...any} expressions Expressions to interpolate. * @yields {string} The HTML strings. */ @@ -166,7 +166,7 @@ const htmlGenerator = function* ({ raw: literals }, ...expressions) { }; /** - * @param {{ raw: string[] }} literals Tagged template literals. + * @param {{ raw: Readonly }} literals Tagged template literals. * @param {...any} expressions Expressions to interpolate. * @yields {string} The HTML strings. */