Skip to content

Commit 9a9f3d3

Browse files
committed
Rename template variables
1 parent e6717c5 commit 9a9f3d3

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

index.js

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -30,33 +30,33 @@ import { DomStackAggregateError } from './lib/helpers/dom-stack-aggregate-error.
3030
*/
3131

3232
/**
33-
* @template {Record<string, any>} T - The type of variables passed to the layout function
34-
* @template [U=any] U - The return type of the page function (defaults to any)
35-
* @template [V=string] V - The return type of the layout function (defaults to string)
36-
* @typedef {LayoutFunction<T, U, V>} LayoutFunction
33+
* @template {Record<string, any>} Vars - The type of variables passed to the layout function
34+
* @template [PageReturn=any] PageReturn - The return type of the page function (defaults to any)
35+
* @template [LayoutReturn=string] LayoutReturn - The return type of the layout function (defaults to string)
36+
* @typedef {LayoutFunction<Vars, PageReturn, LayoutReturn>} LayoutFunction
3737
*/
3838

3939
/**
40-
* @template {Record<string, any>} T - The type of variables for the post vars function
41-
* @template [U=any] U - The return type of the page function (defaults to any)
42-
* @template [V=string] V - The return type of the layout function (defaults to string)
43-
* @typedef {PostVarsFunction<T, U, V>} PostVarsFunction
40+
* @template {Record<string, any>} Vars - The type of variables for the post vars function
41+
* @template [PageReturn=any] PageReturn - The return type of the page function (defaults to any)
42+
* @template [LayoutReturn=string] LayoutReturn - The return type of the layout function (defaults to string)
43+
* @typedef {PostVarsFunction<Vars, PageReturn, LayoutReturn>} PostVarsFunction
4444
*/
4545

4646
/**
47-
* @template {Record<string, any>} T - The type of variables passed to the page function
48-
* @template [U=any] U - The return type of the page function (defaults to any)
49-
* @typedef {PageFunction<T, U>} PageFunction
47+
* @template {Record<string, any>} Vars - The type of variables passed to the page function
48+
* @template [PageReturn=any] PageReturn - The return type of the page function (defaults to any)
49+
* @typedef {PageFunction<Vars, PageReturn>} PageFunction
5050
*/
5151

5252
/**
53-
* @template {Record<string, any>} T - The type of variables for the template function
54-
* @typedef {TemplateFunction<T>} TemplateFunction
53+
* @template {Record<string, any>} Vars - The type of variables for the template function
54+
* @typedef {TemplateFunction<Vars>} TemplateFunction
5555
*/
5656

5757
/**
58-
* @template {Record<string, any>} T - The type of variables for the template async iterator
59-
* @typedef {TemplateAsyncIterator<T>} TemplateAsyncIterator
58+
* @template {Record<string, any>} Vars - The type of variables for the template async iterator
59+
* @typedef {TemplateAsyncIterator<Vars>} TemplateAsyncIterator
6060
*/
6161

6262
/**

0 commit comments

Comments
 (0)