diff --git a/packages/runtime-class/index.d.ts b/packages/runtime-class/index.d.ts index ee9e24c262..465e297abf 100644 --- a/packages/runtime-class/index.d.ts +++ b/packages/runtime-class/index.d.ts @@ -352,12 +352,15 @@ declare global { export interface NativeTag< Input extends Record, Return extends Element, + Value = never, > { input: Input; - return: { value: () => Return }; + return: { + value: (() => Return) & Value; + }; } export interface NativeTags { - [name: string]: NativeTag, Element>; + [name: string]: NativeTag, Element, any>; } export type Input = 0 extends 1 & Name diff --git a/packages/runtime-class/tags-html.d.ts b/packages/runtime-class/tags-html.d.ts index f527dbbac1..7cf34183d8 100644 --- a/packages/runtime-class/tags-html.d.ts +++ b/packages/runtime-class/tags-html.d.ts @@ -101,7 +101,11 @@ declare global { source: NativeTag; span: NativeTag; strong: NativeTag; - style: NativeTag; + style: NativeTag< + Marko.HTML.Style, + HTMLStyleElement, + Record + >; sub: NativeTag; summary: NativeTag; sup: NativeTag; diff --git a/packages/runtime-tags/index.d.ts b/packages/runtime-tags/index.d.ts index c23be6012b..cbdb49e66e 100644 --- a/packages/runtime-tags/index.d.ts +++ b/packages/runtime-tags/index.d.ts @@ -110,12 +110,15 @@ declare global { export interface NativeTag< Input extends Record, Return extends Element, + Value = never, > { input: Input; - return: { value: () => Return }; + return: { + value: (() => Return) & Value; + }; } export interface NativeTags { - [name: string]: NativeTag, Element>; + [name: string]: NativeTag, Element, any>; } export type Input = 0 extends 1 & Name diff --git a/packages/runtime-tags/tags-html.d.ts b/packages/runtime-tags/tags-html.d.ts index 311379da52..729937dde3 100644 --- a/packages/runtime-tags/tags-html.d.ts +++ b/packages/runtime-tags/tags-html.d.ts @@ -101,7 +101,11 @@ declare global { source: NativeTag; span: NativeTag; strong: NativeTag; - style: NativeTag; + style: NativeTag< + Marko.HTML.Style, + HTMLStyleElement, + Record + >; sub: NativeTag; summary: NativeTag; sup: NativeTag;