Skip to content

[Feature]: Re-export date types #2260

@hywax

Description

@hywax

Describe the feature

We need additional types that exist in reka, but they are not exported.

Currently, to create components, we have to write:

type SegmentPart = Parameters<InstanceType<typeof DateField.Root>['$slots']['default'] & {}>[0]['segments']

We want to simply export this type from reka:

import type { SegmentPart } from 'reka-ui'
// or
import type { SegmentPart } from 'reka-ui/date'

We just need to add a re-export in this file: https://github.com/unovue/reka-ui/blob/v2/packages/core/src/shared/index.ts

Example https://github.com/nuxt/ui/pull/5387/files#diff-a4d45f82f4fece61efb56bf8d30b32b59105822f0da68565ddae277700bf3afaR98-R102

Additional information

  • I intend to submit a PR for this feature.
  • I have already implemented and/or tested this feature.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions