@koine/react 2.0.0-beta.54 → 2.0.0-beta.56

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- export type NoJsProps = object;
1
+ export type NoJsProps = Record<string, never>;
2
2
  export declare let NoJs: (_props: NoJsProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,6 @@
1
1
  import React from "react";
2
- import type { FunctionReturningPromise, PromiseType } from "../types";
2
+ type PromiseType<P extends Promise<any>> = P extends Promise<infer T> ? T : never;
3
+ type FunctionReturningPromise = (...args: any[]) => Promise<any>;
3
4
  export type UseAsyncState<T> = {
4
5
  loading: boolean;
5
6
  error?: undefined;
package/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  export * from "./hooks";
2
2
  export * from "./utils";
3
- export type { Translate, Option } from "./types";
3
+ export * from "./types";
package/package.json CHANGED
@@ -2,8 +2,8 @@
2
2
  "name": "@koine/react",
3
3
  "sideEffects": false,
4
4
  "dependencies": {
5
- "@koine/dom": "2.0.0-beta.54",
6
- "@koine/utils": "2.0.0-beta.54"
5
+ "@koine/dom": "2.0.0-beta.56",
6
+ "@koine/utils": "2.0.0-beta.56"
7
7
  },
8
8
  "peerDependencies": {
9
9
  "@kuus/yup": "1.0.0-beta.7",
@@ -45,5 +45,5 @@
45
45
  },
46
46
  "module": "./index.esm.js",
47
47
  "main": "./index.cjs.js",
48
- "version": "2.0.0-beta.54"
48
+ "version": "2.0.0-beta.56"
49
49
  }
package/types.d.ts CHANGED
@@ -1,10 +1,2 @@
1
- export type Translate = (i18nKey: any, query?: any, options?: any) => string;
2
- export type Option = {
3
- value: string;
4
- Label?: NonNullable<import("react").ReactNode>;
5
- label: NonNullable<import("react").ReactChild | import("react").ReactFragment>;
6
- };
7
1
  export type KoineComponentProps<BaseComponentProps, ExtendableProps> = BaseComponentProps & ExtendableProps;
8
2
  export type KoineComponent<Props = any> = string | React.ForwardRefExoticComponent<Props> | React.ExoticComponent<Props> | React.FC<Props> | ((props: Props) => JSX.Element);
9
- export type PromiseType<P extends Promise<any>> = P extends Promise<infer T> ? T : never;
10
- export type FunctionReturningPromise = (...args: any[]) => Promise<any>;