Skip to content

Commit

Permalink
feat: convert index.jsx into ts
Browse files Browse the repository at this point in the history
  • Loading branch information
yuki0410-dev committed May 15, 2024
1 parent 16248be commit b2b9b8d
Show file tree
Hide file tree
Showing 15 changed files with 351 additions and 420 deletions.
2 changes: 1 addition & 1 deletion rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const migrateRollup2to3OutputOptions = {

/** @type {import('rollup').RollupOptions} */
const config = {
input: "src/index.jsx",
input: "src/index.tsx",
output: [
{
file: pkg.browser,
Expand Down
7 changes: 7 additions & 0 deletions src/@types/react-onclickoutside/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { findDOMNode } from "react-dom";

declare module "react-onclickoutside" {
interface WrapperInstance<P, C> {
componentNode: ReturnType<typeof findDOMNode>;
}
}
Loading

0 comments on commit b2b9b8d

Please sign in to comment.