Skip to content

Commit cf67a21

Browse files
committed
fix: add typings
1 parent 1e9fa1b commit cf67a21

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.sizesnap.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"dist/index.d.ts": {
3-
"size": "79B",
4-
"brotli": "57B",
5-
"gzip": "82B"
3+
"size": "157B",
4+
"brotli": "98B",
5+
"gzip": "133B"
66
},
77
"dist/index.js": {
88
"size": "2.811KB",

src/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ const delimiterRegexGlobal = new RegExp(delimiterComment, 'g')
1212

1313
const eventRegex = /(@)(\w+)=["']$/
1414

15+
/**
16+
*
17+
* @param {import("@arrow-js/core").ArrowTemplate} template
18+
* @return {string}
19+
*/
1520
export function renderToString(template) {
1621
const isT = 'isT' in template
1722
// FIXME: not a template, throw an error instead,

0 commit comments

Comments
 (0)