Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: mjolnirjs/stated-bean
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.8.3
Choose a base ref
...
head repository: mjolnirjs/stated-bean
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.8.4
Choose a head ref
  • 2 commits
  • 3 files changed
  • 2 contributors

Commits on Nov 26, 2019

  1. Copy the full SHA
    94faaef View commit details
  2. chore(release): 0.8.4

    JounQin committed Nov 26, 2019
    Copy the full SHA
    e945c69 View commit details
Showing with 9 additions and 2 deletions.
  1. +7 −0 CHANGELOG.md
  2. +1 −1 package.json
  3. +1 −1 src/types/ClassType.ts
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -2,6 +2,13 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [0.8.4](https://github.com/mjolnirjs/stated-bean/compare/v0.8.3...v0.8.4) (2019-11-26)


### Bug Fixes

* 🐛 ts type check fail when class has constructor with param ([#132](https://github.com/mjolnirjs/stated-bean/issues/132)) ([94faaef](https://github.com/mjolnirjs/stated-bean/commit/94faaefa0a2ba37acd20bbe19562c92d334e03b9))

### [0.8.3](https://github.com/mjolnirjs/stated-bean/compare/v0.8.2...v0.8.3) (2019-11-21)

### [0.8.2](https://github.com/mjolnirjs/stated-bean/compare/v0.8.1...v0.8.2) (2019-10-16)
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "stated-bean",
"version": "0.8.3",
"version": "0.8.4",
"description": "A light but scalable state management library with react hooks",
"repository": "git@github.com:mjolnirjs/stated-bean.git",
"license": "MIT",
2 changes: 1 addition & 1 deletion src/types/ClassType.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// eslint-disable-next-line @typescript-eslint/no-type-alias
export type ClassType<T = unknown> = new (...args: unknown[]) => T;
export type ClassType<T = unknown> = new (...args: any[]) => T;

// eslint-disable-next-line @typescript-eslint/no-type-alias
export type InstanceType<T extends ClassType<T>> = T extends ClassType<infer R> ? R : never;