You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@types/moment-hijri

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/moment-hijri

TypeScript definitions for moment-hijri

2.1.4
ts4.6
ts4.7
ts4.8
ts4.9
ts5.0
ts5.1
ts5.2
ts5.3
ts5.4
ts5.5
ts5.6
ts5.7
ts5.8
ts5.9
latest
Source
npm
Version published
Weekly downloads
11K
-3.16%
Maintainers
1
Weekly downloads
 
Created
Source

Installation

npm install --save @types/moment-hijri

Summary

This package contains type definitions for moment-hijri (https://github.com/xsoh/moment-hijri).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/moment-hijri.

index.d.ts

import moment = require("moment");

export = moment;

declare module "moment" {
    type IUnitOfTime = "iYear" | "iMonth" | "iDate";

    function iDaysInMonth(year: number, month: number): number;

    namespace iConvert {
        interface GregorianResult {
            gy: number;
            gm: number;
            gd: number;
        }

        interface HijriResult {
            hy: number;
            hm: number;
            hd: number;
        }

        function toHijri(gy: number, gm: number, gd: number): HijriResult;
        function toGregorian(hy: number, hm: number, hd: number): GregorianResult;
    }

    interface Moment {
        startOf(unit: IUnitOfTime): Moment;
        endOf(unit: IUnitOfTime): Moment;

        add(amount: string | number, unit: IUnitOfTime): Moment;
        subtract(amount: string | number, unit: IUnitOfTime): Moment;

        iYear(y: number): Moment;
        iYear(): number;
        iMonth(m: number | string): Moment;
        iMonth(): number;
        iDate(d: number): Moment;
        iDate(): number;
        iWeek(d: number): Moment;
        iWeek(): number;
        iWeekYear(d: number): Moment;
        iWeekYear(): number;
        iDayOfYear(d: number): Moment;
        iDayOfYear(): number;
        iDaysInMonth(): number;
    }
}

Additional Details

  • Last updated: Fri, 26 Jan 2024 06:07:46 GMT
  • Dependencies: moment

Credits

These definitions were written by Alaa Masoud.

FAQs

Package last updated on 26 Jan 2024

Did you know?

Socket

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.

Install

Related posts