Skip to content

Commit 9692643

Browse files
committed
chore: directly export default using an object
1 parent 3d63f5c commit 9692643

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

lib/adapters/show-document-adapter.ts

+5-7
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,14 @@ import { TextEditor } from "atom"
44
import Convert from "../convert"
55

66
/** Public: Adapts the window/showDocument command to Atom's text editors or external programs. */
7-
export default class ShowDocumentAdapter {
7+
const ShowDocumentAdapter = {
88
/** {@inheritDoc attach} */
9-
public attach(arg: Parameters<typeof attach>[0]): ReturnType<typeof attach> {
10-
attach(arg)
11-
}
9+
attach,
1210
/** {@inheritDoc showDocument} */
13-
public onShowDocument(...args: Parameters<typeof showDocument>): ReturnType<typeof showDocument> {
14-
return showDocument(...args)
15-
}
11+
showDocument,
1612
}
13+
// for consistency with other adapters
14+
export default ShowDocumentAdapter
1715

1816
/**
1917
* Public: Attach to a {LanguageClientConnection} to recieve requests to show documents.

0 commit comments

Comments
 (0)