Skip to content

Commit

Permalink
fix: add const return to forAttrTag helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
LuLaValva committed Oct 4, 2024
1 parent 9f4ce87 commit d01f391
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/language-tools/marko.internal.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ declare global {

export function forAttrTag<
Value extends Iterable<any> | readonly any[],
Return,
const Return,
>(
input: {
of: Value;
Expand All @@ -231,7 +231,7 @@ declare global {
: never;
};

export function forAttrTag<Value extends object, Return>(
export function forAttrTag<Value extends object, const Return>(
input: {
in: Value;
},
Expand All @@ -248,7 +248,7 @@ declare global {
From extends void | number,
To extends number,
Step extends void | number,
Return,
const Return,
>(
input: {
from?: From;
Expand All @@ -270,7 +270,7 @@ declare global {
: never;
};

export function forAttrTag<Return>(attrs: {
export function forAttrTag<const Return>(attrs: {
input:
| {
of: any;
Expand Down

0 comments on commit d01f391

Please sign in to comment.