next-rest-framework
next-rest-framework copied to clipboard
TS error when doing `export const {POST}`
Hi,
I have the following code (copied from the docs):
import { rpcRoute } from 'next-rest-framework'
export const { POST } = rpcRoute({
myRPC,
})
export type RpcClient = typeof POST.client
But typescript complains about the POST variable definition:
Exported variable 'POST' has or is using name 'NrfOasData' from external module "node_modules/next-rest-framework/dist/index" but cannot be named.ts(4023)
Not sure what this is about, I guess something must be fixed on the library side?