Skip to content

Commit 51b7957

Browse files
committed
MKT-1947: PR feedback
1 parent ad38993 commit 51b7957

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/src/field.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ declare class Field {
4141
* This function is called when another extension programmatically changes data of this field using field.setData() function, only available for extension field, only support extensions of data type text, number, boolean or date.
4242
* @param {function} callback The function to be called when an entry is published.
4343
*/
44-
onChange?(callback: (data: IFieldInitData) => any): void;
44+
onChange?(callback: (data: any) => any): void;
4545
}
4646
export default Field;
4747
//# sourceMappingURL=field.d.ts.map

dist/src/field.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/field.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ class Field {
155155
* This function is called when another extension programmatically changes data of this field using field.setData() function, only available for extension field, only support extensions of data type text, number, boolean or date.
156156
* @param {function} callback The function to be called when an entry is published.
157157
*/
158-
onChange?(callback: (data: IFieldInitData) => any) {
158+
onChange?(callback: (data: any) => any) {
159159
const fieldObj = this;
160160
if (callback && typeof callback === "function") {
161161
fieldObj._emitter.on("extensionFieldChange", (event: any) => {

0 commit comments

Comments
 (0)