fox-block-builder
Version:
Maintainable code for loop slack-block-kit-like modal builder
19 lines (18 loc) • 998 B
TypeScript
import { ModalBuilder, ModalParams } from './modal';
export type { ModalBuilder, ModalParams };
/**
* @param {Object} [config] Parameters passed to the constructor.
* @param {string} [config.title] Sets a title for your modal.
* @param {string} [config.close] Sets the text for the close button.
* @param {string} [config.submit] Sets the text for the submit button.
* @param {string} [config.callbackId] Sets a string sent back to your server together with all action and submission events.
* @param {string} [config.externalId] Sets a custom identifier that must be unique for all views on a per-team basis.
* @param {string} [config.privateMetaData] Sets a string sent back to your server together with all action and submission events.
*
* {@link https://api.slack.com/reference/surfaces/views|View in Slack API Documentation}
*/
export declare function Modal(params?: ModalParams): ModalBuilder;
declare const surfaces: {
Modal: typeof Modal;
};
export { surfaces as Surfaces };