graphand-react
Advanced tools
Comparing version 0.4.15-beta to 0.4.16-beta
@@ -36,6 +36,6 @@ import React from "react"; | ||
componentWillUnmount(): void; | ||
renderCallback(): React.ReactNode; | ||
renderFallback(): React.ReactNode; | ||
render(): React.ReactNode; | ||
renderCallback(): JSX.Element; | ||
renderFallback(): JSX.Element; | ||
render(): JSX.Element; | ||
} | ||
export default PromiseSuspense; |
@@ -0,3 +1,3 @@ | ||
/// <reference types="react" /> | ||
import { GraphandError, GraphandModel } from "graphand-js"; | ||
import React from "react"; | ||
import { GraphandFormTemplate, GraphandFormTemplateParamsBase } from "../components/GraphandForm"; | ||
@@ -8,3 +8,3 @@ export declare type GraphandFormOptions = { | ||
instance?: GraphandModel; | ||
controls?: React.ReactNode | ((props: GraphandFormOptions) => React.ReactNode); | ||
controls?: JSX.Element | ((props: GraphandFormOptions) => JSX.Element); | ||
fieldsOptions?: any; | ||
@@ -23,3 +23,3 @@ onChange?: (values: any, helpers: GraphandFormTemplateParamsBase) => void; | ||
}; | ||
declare function renderForm(options: GraphandFormOptions): React.ReactNode; | ||
declare function renderForm(options: GraphandFormOptions): JSX.Element; | ||
export default renderForm; |
@@ -0,5 +1,5 @@ | ||
/// <reference types="react" /> | ||
import { GraphandModelListPromise, GraphandModelPromise } from "graphand-js"; | ||
import React from "react"; | ||
export declare type PromiseSuspenseCallback<T> = React.ReactNode | ((res: T, loading: boolean, error: Error) => React.ReactNode); | ||
export declare type PromiseSuspenseFallback<T> = React.ReactNode | ((res: T, loading: boolean, error: Error) => React.ReactNode); | ||
export declare type PromiseSuspenseCallback<T> = JSX.Element | ((res: T, loading: boolean, error: Error) => JSX.Element); | ||
export declare type PromiseSuspenseFallback<T> = JSX.Element | ((res: T, loading: boolean, error: Error) => JSX.Element); | ||
export declare type PromiseSuspenseOptions<T> = { | ||
@@ -16,4 +16,4 @@ promise?: GraphandModelPromise<any> | GraphandModelListPromise<any>; | ||
}; | ||
export declare type SuspenseDefinition<T> = (callback: PromiseSuspenseCallback<T>, optionsOrFallback?: PromiseSuspenseOptions<T> | PromiseSuspenseFallback<T>, options?: PromiseSuspenseOptions<T>) => React.ReactNode; | ||
declare function suspense<T>(callback: PromiseSuspenseCallback<T>, optionsOrFallback?: PromiseSuspenseOptions<T> | PromiseSuspenseFallback<T>, options?: PromiseSuspenseOptions<T>): React.ReactNode; | ||
export declare type SuspenseDefinition<T> = (callback: PromiseSuspenseCallback<T>, optionsOrFallback?: PromiseSuspenseOptions<T> | PromiseSuspenseFallback<T>, options?: PromiseSuspenseOptions<T>) => JSX.Element; | ||
declare function suspense<T>(callback: PromiseSuspenseCallback<T>, optionsOrFallback?: PromiseSuspenseOptions<T> | PromiseSuspenseFallback<T>, options?: PromiseSuspenseOptions<T>): JSX.Element; | ||
export default suspense; |
@@ -21,5 +21,5 @@ import { GraphandModel, GraphandPlugin, GraphandField } from "graphand-js"; | ||
class GraphandModel { | ||
static renderForm: (options: GraphandFormOptions) => React.ReactNode; | ||
static renderForm: (options: GraphandFormOptions) => JSX.Element; | ||
suspense: SuspenseDefinition<this>; | ||
renderForm: (options: GraphandFormOptions) => React.ReactNode; | ||
renderForm: (options: GraphandFormOptions) => JSX.Element; | ||
renderFieldView: any; | ||
@@ -26,0 +26,0 @@ renderFieldInput: any; |
{ | ||
"name": "graphand-react", | ||
"version": "0.4.15-beta", | ||
"version": "0.4.16-beta", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/pierrecabriere/graphand-react", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
554371
2301