Skip to content

Commit

Permalink
Export additional typing for logmethods (#91)
Browse files Browse the repository at this point in the history
* Export forgotten types

* genlogfunc return `any` and fix accidental formatting
  • Loading branch information
svemat01 authored Feb 3, 2022
1 parent c593bc8 commit 463eb74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,9 @@ export type MethodConfig = SharedConfig & {
tags?: string[];
};

type GenericLogFunction = (input: string) => void;
export type GenericLogFunction = (input: string) => any;

type MethodList<A extends string> = { [k in A]: string | MethodConfig };
export type MethodList<A extends string> = { [k in A]: string | MethodConfig };

export const resolveRuntimeOrValue = <K>(rov: RuntimeOrValue<K>) => {
return (typeof rov === 'function' ? (rov as Function)() : rov) as K;
Expand Down

0 comments on commit 463eb74

Please sign in to comment.