Skip to content

Commit

Permalink
Split into multiple files (#57)
Browse files Browse the repository at this point in the history
* Create all files

* Split everything into its own file

* Use those individual files in index.ts

* prettier

* Add imports that I forgot 馃ぃ

* Use explicit .js suffix for compat with #55
  • Loading branch information
jcbhmr committed Jun 6, 2023
1 parent 1145aa6 commit 2ab780a
Show file tree
Hide file tree
Showing 38 changed files with 597 additions and 514 deletions.
9 changes: 9 additions & 0 deletions src/getType.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/**
* Returns the object type of the given payload
*
* @param {*} payload
* @returns {string}
*/
export function getType(payload: any): string {
return Object.prototype.toString.call(payload).slice(8, -1)
}

0 comments on commit 2ab780a

Please sign in to comment.