![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
@types/basiclightbox
Advanced tools
TypeScript definitions for basiclightbox
npm install --save @types/basiclightbox
This package contains type definitions for basiclightbox (https://basiclightbox.electerious.com).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/basiclightbox.
export interface BasicLightBox {
/**
* Shows a lightbox instance.
*
* @param cb A function that gets executed as soon as the lightbox starts to fade in.
*/
show: (cb?: () => void) => void;
/**
* Closes a lightbox instance.
*
* @param cb A function that gets executed as soon as the lightbox has been faded out.
*/
close: (cb?: () => void) => void;
/**
* Returns true when the lightbox instance is visible. Also returns true when the lightbox is currently in the process of showing/hiding and not fully visible/hidden, yet.
*/
visible: () => boolean;
/**
* Returns the DOM element/node associated with the instance.
*/
element: () => Element;
}
export interface BasicLightBoxOptions {
/*
* Prevents the lightbox from closing when clicking its background.
*/
closable?: boolean | undefined;
/*
* One or more space separated classes to be added to the basicLightbox element.
*/
className?: string | undefined;
/*
* Function that gets executed before the lightbox will be shown.
* Returning false will prevent the lightbox from showing.
*/
onShow?: ((instance: BasicLightBox) => boolean) | undefined;
/*
* Function that gets executed before the lightbox closes.
* Returning false will prevent the lightbox from closing.
*/
onClose?: ((instance: BasicLightBox) => boolean) | undefined;
}
/**
* Creates a new BasicLightbox instance.
*
* @param content Content of the lightbox.
* @param options An object of options.
*/
export function create(content: string | Element, options?: BasicLightBoxOptions): BasicLightBox;
/**
* Returns `true` when a lightbox is visible. Also returns true when a lightbox is currently in the process of showing/hiding and not fully visible/hidden, yet.
*/
export function visible(): boolean;
These definitions were written by Adrian Hope-Bailie.
FAQs
TypeScript definitions for basiclightbox
The npm package @types/basiclightbox receives a total of 174 weekly downloads. As such, @types/basiclightbox popularity was classified as not popular.
We found that @types/basiclightbox demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.