graphand-react
Advanced tools
Comparing version 0.3.7-beta to 0.3.8-beta
@@ -16,4 +16,4 @@ import { GraphandModelListPromise, GraphandModelPromise } from "graphand-js"; | ||
}; | ||
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>) => React.ReactNode; | ||
declare function suspense<T>(callback: PromiseSuspenseCallback<T>, optionsOrFallback?: PromiseSuspenseOptions<T> | PromiseSuspenseFallback<T>, options?: PromiseSuspenseOptions<T>): React.ReactNode; | ||
export default suspense; |
import { GraphandPlugin } from "graphand-js"; | ||
import React from "react"; | ||
import { GraphandFormOptions } from "./lib/renderForm"; | ||
import { SuspenseDefinition } from "./lib/suspense"; | ||
declare module "graphand-js" { | ||
interface GraphandModel { | ||
suspense: SuspenseDefinition<GraphandModel>; | ||
renderForm: (options: GraphandFormOptions) => React.ReactNode; | ||
renderFieldView: any; | ||
renderFieldInput: any; | ||
} | ||
interface GraphandModelPromise<T extends GraphandModel | GraphandModelList<GraphandModel>> { | ||
suspense: SuspenseDefinition<T>; | ||
} | ||
interface GraphandModelList<T extends GraphandModel> { | ||
suspense: SuspenseDefinition<GraphandModelList<T>>; | ||
} | ||
interface GraphandModelListPromise<T extends GraphandModel> { | ||
suspense: SuspenseDefinition<GraphandModelList<T>>; | ||
} | ||
interface AggregationExecutor { | ||
suspense: SuspenseDefinition<any>; | ||
} | ||
interface GraphandField { | ||
parseFormSubmit: any; | ||
renderInput: any; | ||
renderView: any; | ||
} | ||
} | ||
export declare type GraphandPluginReactOpts = { | ||
@@ -3,0 +31,0 @@ fields: any; |
{ | ||
"name": "graphand-react", | ||
"version": "0.3.7-beta", | ||
"version": "0.3.8-beta", | ||
"description": "", | ||
@@ -14,3 +14,3 @@ "homepage": "https://github.com/pierrecabriere/graphand-react", | ||
"scripts": { | ||
"build": "webpack && cp src/global.d.ts dist/types/global.d.ts", | ||
"build": "webpack", | ||
"build:watch": "WATCH=1 webpack", | ||
@@ -54,4 +54,4 @@ "build:doc": "mkdir -p docs && tsc --project tsconfig.json --outDir dist-docs && node generate-doc.js && rm -rf dist-docs", | ||
"webpack-cli": "^4.9.2", | ||
"graphand-js": "^0.27.3-beta" | ||
"graphand-js": "^0.27.4-beta" | ||
} | ||
} |
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
537964
11