Skip to content

Commit

Permalink
Disable new ESLint rule that breaks type check
Browse files Browse the repository at this point in the history
  • Loading branch information
yhatt committed Jul 17, 2023
1 parent e73567f commit 94cdd29
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ import {
import { isChromeInWSLHost } from './utils/wsl'

export namespace Preview {
export interface Events {
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- TypedEmitter requires type definition instead of interface
export type Events = {
close: (window: any) => void
exit: () => void
launch: () => void
Expand Down
3 changes: 2 additions & 1 deletion src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,8 @@ export class Server extends (EventEmitter as new () => TypedEmitter<Server.Event
}

export namespace Server {
export interface Events {
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- TypedEmitter requires type definition instead of interface
export type Events = {
converted: ConvertedCallback
error: (err: Error) => void
}
Expand Down

0 comments on commit 94cdd29

Please sign in to comment.