Skip to content
This repository was archived by the owner on Dec 6, 2023. It is now read-only.
This repository was archived by the owner on Dec 6, 2023. It is now read-only.

Make type definitions for DefaultTheme available to end-user #36

Description

It is not possible to use variables defined in the theme in a styled-component right now.

1. New script that makes type definitions available in dist.

  • Create a script that generates a global main.d.ts file that contains references to the main.d.ts-file in each component.
  • Copy all src/**/*/main.d.ts to dist.

2. Usage of the script

  • Run the script as part of the build process
  • Don't include /src in the built package published to NPM.
  • Add instructions on how to import type definitions in project.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdocumentationImprovements or additions to documentationenhancementNew feature or requesthelp wantedExtra attention is neededwontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions