couds / react-bulma-components

React components for Bulma framework
MIT License
1.21k stars 126 forks source link

Add type definitions to import {} from "react-bulma-components" #295

Closed FunctionDJ closed 3 years ago

FunctionDJ commented 3 years ago

Describe the bug At first i thought this library didn't have any type definitions, but it appears as if they are only present when using the "advanced" method and not the "simple" method.

To Reproduce Steps to reproduce the behavior:

import { Button } from "react-bulma-components";

TypeScript will let you know 'Could not find a declaration file for module 'react-bulma-components' '. In strict mode, it's not possible to compile.

Expected behavior Types are present, so it works.

Screenshots image

Versions

FunctionDJ commented 3 years ago

Just realized there are no type defs for the "advanced" method either, i'm opening a help issue instead.