feat(ivy): render flags support in host bindings function (FW-649) (#27204)
PR Close #27204
This commit is contained in:

committed by
Misko Hevery

parent
bf71b107b3
commit
dc300c5c41
@ -145,7 +145,7 @@ export interface DirectiveDef<T> extends BaseDef<T> {
|
||||
readonly hostVars: number;
|
||||
|
||||
/** Refreshes host bindings on the associated directive. */
|
||||
hostBindings: HostBindingsFunction|null;
|
||||
hostBindings: HostBindingsFunction<T>|null;
|
||||
|
||||
/**
|
||||
* Static attributes to set on host element.
|
||||
@ -333,7 +333,7 @@ export type DirectiveTypeList =
|
||||
(DirectiveDef<any>| ComponentDef<any>|
|
||||
Type<any>/* Type as workaround for: Microsoft/TypeScript/issues/4881 */)[];
|
||||
|
||||
export type HostBindingsFunction = (directiveIndex: number, elementIndex: number) => void;
|
||||
export type HostBindingsFunction<T> = (rf: RenderFlags, ctx: T, elementIndex: number) => void;
|
||||
|
||||
/**
|
||||
* Type used for PipeDefs on component definition.
|
||||
|
@ -342,7 +342,7 @@ export interface TView {
|
||||
*
|
||||
* See VIEW_DATA.md for more information.
|
||||
*/
|
||||
expandoInstructions: (number|HostBindingsFunction)[]|null;
|
||||
expandoInstructions: (number|HostBindingsFunction<any>)[]|null;
|
||||
|
||||
/**
|
||||
* Full registry of directives and components that may be found in this view.
|
||||
|
Reference in New Issue
Block a user