Skip to content

Commit

Permalink
linting and formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
kitsonk committed Jan 31, 2021
1 parent d8a21aa commit 37f554b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions typescript-deno-plugin/src/aspect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@

/** Extract the return type from a maybe function. */
// deno-lint-ignore no-explicit-any
export type ReturnType<T = (...args: any) => any> = T extends
(...args: any) => infer R ? R
export type ReturnType<T = (...args: any) => any> = T extends // deno-lint-ignore no-explicit-any
(...args: any) => infer R ? R
: // deno-lint-ignore no-explicit-any
any;
/** Extract the parameter types from a maybe function. */
// deno-lint-ignore no-explicit-any
export type Parameters<T = (...args: any) => any> = T extends
(...args: infer P) => any ? P
export type Parameters<T = (...args: any) => any> = T extends // deno-lint-ignore no-explicit-any
(...args: infer P) => any ? P
: never;

type AroundAdvice<T, J extends keyof T> = (
Expand Down
1 change: 1 addition & 0 deletions typescript-deno-plugin/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ class Plugin implements ts.server.PluginModule {

/** Given an object and a method name on that object, call if disabled. */
const callIfDisabled: CallIfDisabledFunction = (fn, emptyReturn) => {
// deno-lint-ignore no-explicit-any
const target = (ls as any)[fn];
return (...args) => {
if (getSettings(this.project).enable) {
Expand Down

0 comments on commit 37f554b

Please sign in to comment.