Skip to content
This repository has been archived by the owner on Aug 25, 2022. It is now read-only.

Commit

Permalink
fix 'directive' typing
Browse files Browse the repository at this point in the history
  • Loading branch information
popeindustries committed Oct 9, 2019
1 parent a62f768 commit d768133
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
declare module '@popeindustries/lit-html-server' {
type Directive = (...args: Array<any>) => (part: Part) => void;

interface TemplateProcessor {
handleAttributeExpressions: (name: string, strings: TemplateStringsArray) => AttributePart;
handleTextExpression: () => NodePart;
Expand All @@ -19,7 +17,7 @@ declare module '@popeindustries/lit-html-server' {
* The passed function should be a factory function,
* and must return a function that will eventually be called with a Part instance
*/
export function directive(fn: Directive): Directive;
export function directive<F extends (...args: Array<any>) => object>(f: F): F;

/**
* Determine if "part" is an AttributePart
Expand Down

0 comments on commit d768133

Please sign in to comment.