Skip to content

Commit

Permalink
Export the underlying type of the keyed directive (#3130)
Browse files Browse the repository at this point in the history
  • Loading branch information
neuronetio committed Jul 21, 2022
1 parent cbe1c4f commit 1f0567f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changeset/fast-chairs-itch.md
@@ -0,0 +1,6 @@
---
"lit-html": patch
"lit": patch
---

Export the underlying type of the `keyed` directive.
6 changes: 6 additions & 0 deletions packages/lit-html/src/directives/keyed.ts
Expand Up @@ -43,3 +43,9 @@ class Keyed extends Directive {
* animation techniques.
*/
export const keyed = directive(Keyed);

/**
* The type of the class that powers this directive. Necessary for naming the
* directive's return type.
*/
export type {Keyed};

0 comments on commit 1f0567f

Please sign in to comment.