router icon indicating copy to clipboard operation
router copied to clipboard

Module '"@tanstack/react-router"' has no exported member 'PickAsRequired'.

Open an-tran511 opened this issue 1 year ago • 1 comments

Describe the bug

As title, I cannot export PickAsRequired or PickAsPartial types according to kitchen query example

Your Example Website or App

https://tanstack.com/router/latest/docs/framework/react/examples/kitchen-sink-react-query

Steps to Reproduce the Bug or Issue

  1. Go to: kitchen-sink-example
  2. Open mockTodo.ts
  3. Check import at 1st line import { PickAsPartial, PickAsRequired } from '@tanstack/react-router'

Expected behavior

I should be able to import exported type PickAsPartial, PickAsRequired

Screenshots or Videos

No response

Platform

  • OS: [e.g. macOS, Windows, Linux]
  • Browser: [e.g. Chrome, Safari, Firefox]
  • Version: [e.g. 91.1]

Additional context

No response

an-tran511 avatar May 22 '24 15:05 an-tran511

This is an mistake on our part. We were previously mistakenly re-exporting our internal types.

We won't be reporting these types, since they are not part of our public api surface.

The just requires the examples to be fixed.

SeanCassiere avatar May 22 '24 16:05 SeanCassiere