![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/moment-holiday
Advanced tools
TypeScript definitions for moment-holiday
npm install --save @types/moment-holiday
This package contains type definitions for moment-holiday (https://github.com/kodie/moment-holiday).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/moment-holiday.
import * as moment from "moment";
declare module "moment" {
interface Moment extends Object {
holiday(
holidays?: string[] | string,
adjust?: boolean,
): Moment | false | { [holidayName: string]: Moment };
holidays(
holidays?: string[] | string,
adjust?: boolean,
): Moment | false | { [holidayName: string]: Moment };
isHoliday(
holidays?: string[] | string | null,
adjust?: boolean,
): boolean | string | string[];
previousHoliday(count?: number, adjust?: boolean): Moment[] | Moment;
previousHolidays(count?: number, adjust?: boolean): Moment[] | Moment;
nextHoliday(count?: number, adjust?: boolean): Moment[] | Moment;
nextHolidays(count?: number, adjust?: boolean): Moment[] | Moment;
holidaysBetween(m: Moment, adjust?: boolean): Moment[] | false;
}
interface HolidayDefinition {
date: string;
keywords?: string[] | undefined;
keywords_y?: string[] | undefined;
keywords_n?: string[] | undefined;
regions?: string[] | undefined;
regions_n?: string[] | undefined;
}
interface HolidaysMapping {
[holidayName: string]: HolidayDefinition;
}
interface Holidays {
active: HolidaysMapping;
active_last: HolidaysMapping;
}
interface HolidayModifier {
set(
holidays: HolidaysMapping | string | string[],
specifics?: any,
): HolidayModifier;
add(
holidays: HolidaysMapping | string,
specifics?: any,
): HolidayModifier;
remove(holidays: string | string[]): HolidayModifier;
undo(): HolidayModifier;
load(locales: string | string[]): HolidayModifier;
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
extendParser(parserFunc: (m: Moment, date: string) => Moment | Moment[] | false | void): HolidayModifier;
}
let holidays: Holidays;
let modifyHolidays: HolidayModifier;
}
These definitions were written by Robert Winslow Dalpe.
FAQs
TypeScript definitions for moment-holiday
The npm package @types/moment-holiday receives a total of 2 weekly downloads. As such, @types/moment-holiday popularity was classified as not popular.
We found that @types/moment-holiday 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.