From 5ba9d512fe8c8877c0507540ebcc0a77f8a7e575 Mon Sep 17 00:00:00 2001 From: VinceMalone Date: Fri, 28 Jun 2019 17:48:51 -0400 Subject: [PATCH 1/2] make interfaces public --- typings/index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/typings/index.d.ts b/typings/index.d.ts index de113325..fb368020 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -1,17 +1,17 @@ import { ComponentType } from 'react' export { act } from 'react-test-renderer' -interface RenderHookOptions

{ +export interface RenderHookOptions

{ initialProps?: P wrapper?: React.ComponentType } -interface HookResult { +export interface HookResult { readonly current: R readonly error: Error } -interface RenderHookResult { +export interface RenderHookResult { readonly result: HookResult readonly waitForNextUpdate: () => Promise readonly unmount: () => boolean From f08237184b59ee10a48538fde30862ba3cef2255 Mon Sep 17 00:00:00 2001 From: VinceMalone Date: Fri, 28 Jun 2019 17:49:06 -0400 Subject: [PATCH 2/2] contrib --- .all-contributorsrc | 9 +++++++++ README.md | 20 ++++++++++++++++++-- 2 files changed, 27 insertions(+), 2 deletions(-) diff --git a/.all-contributorsrc b/.all-contributorsrc index 53aaac86..f078f2e4 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -111,6 +111,15 @@ "bug", "code" ] + }, + { + "login": "VinceMalone", + "name": "Vince Malone", + "avatar_url": "https://avatars0.githubusercontent.com/u/2516349?v=4", + "profile": "https://github.com/VinceMalone", + "contributions": [ + "code" + ] } ], "commitConvention": "none" diff --git a/README.md b/README.md index be2d6204..0b8fcd36 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ [![downloads](https://img.shields.io/npm/dm/@testing-library/react-hooks.svg?style=flat-square)](http://www.npmtrends.com/@testing-library/react-hooks) [![MIT License](https://img.shields.io/npm/l/@testing-library/react-hooks.svg?style=flat-square)](https://github.com/testing-library/react-hooks-testing-library/blob/master/LICENSE.md) -[![All Contributors](https://img.shields.io/badge/all_contributors-10-orange.svg?style=flat-square)](#contributors) +[![All Contributors](https://img.shields.io/badge/all_contributors-11-orange.svg?style=flat-square)](#contributors) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com) [![Code of Conduct](https://img.shields.io/badge/code%20of-conduct-ff69b4.svg?style=flat-square)](https://github.com/testing-library/react-hooks-testing-library/blob/master/CODE_OF_CONDUCT.md) [![Netlify Status](https://api.netlify.com/api/v1/badges/9a8f27a5-df38-4910-a248-4908b1ba29a7/deploy-status)](https://app.netlify.com/sites/react-hooks-testing-library/deploys) @@ -143,7 +143,23 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d -
Michael Peyper
Michael Peyper

💻 🎨 📖 🤔 🚇 📦 ⚠️ 🔧
otofu-square
otofu-square

💻
Patrick P. Henley
Patrick P. Henley

🤔 👀
Matheus Marques
Matheus Marques

💻
Dhruv Patel
Dhruv Patel

🐛 👀
Nathaniel Tucker
Nathaniel Tucker

🐛 👀
Sergei Grishchenko
Sergei Grishchenko

💻 📖 🤔
Josep M Sobrepere
Josep M Sobrepere

📖
Marcel Tinner
Marcel Tinner

📖
Daniel K.
Daniel K.

🐛 💻
+ + + + + + + + + + + + + + + + +
Michael Peyper
Michael Peyper

💻 🎨 📖 🤔 🚇 📦 ⚠️ 🔧
otofu-square
otofu-square

💻
Patrick P. Henley
Patrick P. Henley

🤔 👀
Matheus Marques
Matheus Marques

💻
Dhruv Patel
Dhruv Patel

🐛 👀
Nathaniel Tucker
Nathaniel Tucker

🐛 👀
Sergei Grishchenko
Sergei Grishchenko

💻 📖 🤔
Josep M Sobrepere
Josep M Sobrepere

📖
Marcel Tinner
Marcel Tinner

📖
Daniel K.
Daniel K.

🐛 💻
Vince Malone
Vince Malone

💻