From 892e4161d4377330ca9dc48d0a6ec399a485d56f Mon Sep 17 00:00:00 2001 From: Travis Tidwell Date: Tue, 14 Nov 2023 08:19:02 -0600 Subject: [PATCH] Updated build. --- package.json | 2 +- types/formio.d.ts | 12 +++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 15f292245f..5166b1207b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@formio/js", - "version": "5.0.0-rc.31", + "version": "5.0.0-rc.32", "description": "JavaScript powered Forms with JSON Form Builder", "main": "lib/cjs/index.js", "exports": { diff --git a/types/formio.d.ts b/types/formio.d.ts index 2eb96f4202..448b8346ca 100644 --- a/types/formio.d.ts +++ b/types/formio.d.ts @@ -1,5 +1,11 @@ import EventEmitter from 'eventemitter3'; import Plugins from './Plugins'; + +export interface FormioLibrarySource { + type: string; + src: string; +} + /** * The Formio class options interface. */ @@ -160,6 +166,10 @@ export declare class Formio { * A direct interface to the Form.io fetch Headers polyfill. */ static Headers: any; + /** + * The rules definitions. + */ + static rulesEntities: any; /** * All of the auth tokens for this session. */ @@ -1173,7 +1183,7 @@ export declare class Formio { * @param {boolean} polling - Determines if polling should be used to determine if they library is ready to use. If set to false, then it will rely on a global callback called ${name}Callback where "name" is the first property passed to this method. When this is called, that will indicate when the library is ready. In most cases, you will want to pass true to this parameter to initiate a polling method to check for the library availability in the global context. * @return {Promise} - A promise that will resolve when the plugin is ready to be used. */ - static requireLibrary(name: string, property: string, src: string | Array, polling?: boolean, onload?: (ready: Promise) => void): any; + static requireLibrary(name: string, property: string, src: string | Array | FormioLibrarySource | Array, polling?: boolean, onload?: (ready: Promise) => void): any; /** * Determines if a lazy loaded library is ready to be used. *