Open bforbis opened 5 years ago
I like the idea! Do you want to create a pull request, or should I?
If you could do it, that would be great. I don't know much about how to use rollup. I've tested locally with this following index.d.ts
file and it seems to be working:
import React from 'react'
interface AdmonitionProps {
type: "warning" | "tip" | "caution" | "note" | "important";
iconType?: "svg" | "emoji";
title?: string;
}
export default class Admonition extends React.Component<AdmonitionProps> {}
export {AdmonitionProps}
An included
index.d.ts
would provide code intellisense and greater support for react projects using typescript.