Skip to content

Commit

Permalink
include invalid types in a d.ts file to make sure they are caught by CI
Browse files Browse the repository at this point in the history
  • Loading branch information
spalger committed Jan 26, 2021
1 parent c99a7ba commit 25656fb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,20 @@
* Public License, v 1.
*/

/* eslint-disable max-classes-per-file */

declare module '*.html' {
const template: string;
// eslint-disable-next-line import/no-default-export
export default template;
}

declare abstract class Foo {
bar(): string;
}

declare class Bar implements Foo {}

type MethodKeysOf<T> = {
[K in keyof T]: T[K] extends (...args: any[]) => any ? K : never;
}[keyof T];
Expand Down

0 comments on commit 25656fb

Please sign in to comment.