I have an index.ts file that exports a types.d.ts file. However, that types file still gets flagged as unused.
export type * from './types'
export * from './context'
export * from './provider'
export * from './use'
For now, my workaround is to exclude **.d.ts but that shouldn't really be necessary.