@cisstech/nge
Version:
NG Essentials is a collection of libraries for Angular developers.
15 lines (14 loc) • 734 B
TypeScript
import { TemplateRef } from '@angular/core';
import { ITreeNodeHolder } from './tree.model';
import * as i0 from "@angular/core";
export declare type Context<T> = {
$implicit: ITreeNodeHolder<T>;
};
/** Element that can be used as a template for a `TreeComponent` */
export declare class TreeNodeDirective<T> {
readonly templateRef: TemplateRef<Context<T>>;
static ngTemplateContextGuard<T>(_: TreeNodeDirective<T>, ctx: any): ctx is Context<T>;
constructor(templateRef: TemplateRef<Context<T>>);
static ɵfac: i0.ɵɵFactoryDeclaration<TreeNodeDirective<any>, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<TreeNodeDirective<any>, "[treeNode], ui-tree-node", never, {}, {}, never, never, false, never>;
}