Skip to content

Commit

Permalink
Merge pull request #5 from cuppachino/changeset-release/main
Browse files Browse the repository at this point in the history
Version Packages
  • Loading branch information
cuppachino committed Sep 6, 2023
2 parents a008822 + 7e67027 commit 2291d60
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 17 deletions.
5 changes: 0 additions & 5 deletions .changeset/neat-brooms-switch.md

This file was deleted.

6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @cuppachino/proxy-fn

## 1.0.0

### Major Changes

- 6f7692d: add tests and pass all cases

## 0.0.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cuppachino/proxy-fn",
"version": "0.0.2",
"version": "1.0.0",
"description": "",
"type": "module",
"main": "dist/cjs/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/modules/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from './proxy-fn.js'
export * from './proxy-fn.js'
8 changes: 4 additions & 4 deletions src/types/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export type * from "./is-never.js";
export type * from "./is-empty.js";
export type * from "./maybe-promise.js";
export type * from "./assigned.js";
export type * from './is-never.js'
export type * from './is-empty.js'
export type * from './maybe-promise.js'
export type * from './assigned.js'
4 changes: 2 additions & 2 deletions src/types/is-empty.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import type { IsNever } from "./is-never.js";
import type { IsNever } from './is-never.js'

export type IsEmpty<T> = IsNever<keyof NonNullable<T>>
export type IsEmpty<T> = IsNever<keyof NonNullable<T>>
2 changes: 1 addition & 1 deletion src/types/is-never.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export type IsNever<T> = [T] extends [never] ? true : false;
export type IsNever<T> = [T] extends [never] ? true : false
4 changes: 1 addition & 3 deletions src/utils/is-promise.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
* Returns true if the given thing is a promise.
* @param anything The thing to check. Might be undefined.
*/
export const isPromise = <T>(
anything: T | Promise<T> | undefined
): anything is Promise<T> => {
export const isPromise = <T>(anything: T | Promise<T> | undefined): anything is Promise<T> => {
return !!anything && anything instanceof Promise
}

0 comments on commit 2291d60

Please sign in to comment.