tokra-use-next
TypeScript icon, indicating that this package has built-in type declarations

0.0.1-rc.2 • Public • Published

tokra-use-next

Exobase root hook to handle function running on Next.js api functions

Install

yarn add tokra-use-next

Usage

import { compose } from 'radash'
import type { Props } from 'tokra'
import { useNext } from 'tokra-use-next'

export const pingEndpoint = async (props: Props) => {
  return {
    message: 'pong'
  }
}

export default compose(useNext(), pingEndpoint)

Readme

Keywords

none

Package Sidebar

Install

npm i tokra-use-next

Weekly Downloads

1

Version

0.0.1-rc.2

License

MIT

Unpacked Size

10.2 kB

Total Files

14

Last publish

Collaborators

  • rayepps