Skip to content

Commit

Permalink
types(*): Typo for typeOf function
Browse files Browse the repository at this point in the history
  • Loading branch information
iagocalazans committed Jul 26, 2022
1 parent 69ab6cb commit 09b101a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 1 addition & 2 deletions lib/use.injection.js
Expand Up @@ -72,8 +72,7 @@ module.exports.useInjection = (fn, params) => async function (...args) {
/**
* A more precisely type checker than Javascript built-in typeof.
*
* @param { * } o
* @returns { string }
* @type { import('../types/use.injection').typeOf }
*/
module.exports.typeOf = function (o) {
/**
Expand Down
2 changes: 2 additions & 0 deletions types/use.injection.d.ts
Expand Up @@ -44,3 +44,5 @@ export type InjectionOptions = {
export type TwilioFunction = (context: Context, event: Event, callback: import('@twilio-labs/serverless-runtime-types/types').ServerlessCallback) => Promise<void>

export function useInjection<T>(action: Action<T>, options: InjectionOptions): TwilioFunction

export function typeOf(value: any): string

0 comments on commit 09b101a

Please sign in to comment.