UNPKG

@surface/custom-element

Version:

Provides support of directives and data binding on custom elements.

23 lines (22 loc) 898 B
import type { IDisposable } from "@surface/core"; import type LoopDirectiveDescriptor from "../types/loop-directive-descriptor"; import type TemplateDirectiveContext from "../types/template-directive-context"; export default class LoopDirective implements IDisposable { private static readonly maximumAmount; private readonly cache; private readonly cancellationTokenSource; private readonly context; private readonly descriptor; private readonly iterator; private readonly subscription; private readonly template; private readonly templateBlock; private readonly tree; private disposed; constructor(template: HTMLTemplateElement, descriptor: LoopDirectiveDescriptor, context: TemplateDirectiveContext); private action; private forOfIterator; private forInIterator; private readonly task; dispose(): void; }