Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/later

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/later - npm Package Compare versions

Comparing version 0.0.28 to 1.2.0

190

later/index.d.ts

@@ -1,9 +0,9 @@

// Type definitions for LaterJS
// Type definitions for LaterJS 1.2
// Project: http://bunkat.github.io/later/
// Definitions by: Jason D Dryhurst-Smith <http://jasonds.co.uk/>
// Definitions by: Jason D Dryhurst-Smith <https://github.com/jasond-s>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare namespace Later {
declare namespace later {
export interface IScheduleData {
interface ScheduleData {

@@ -13,3 +13,3 @@ /**

*/
schedules: IRecurrence[];
schedules: Recurrence[];

@@ -19,3 +19,3 @@ /**

*/
exceptions: IRecurrence[];
exceptions: Recurrence[];

@@ -29,3 +29,3 @@ /**

export interface IRecurrence {
interface Recurrence {

@@ -151,3 +151,3 @@ /** Time in seconds from midnight.

export interface IParseStatic {
interface ParseStatic {

@@ -157,3 +157,3 @@ /**

*/
recur(): IRecurrenceBuilder;
recur(): RecurrenceBuilder;

@@ -165,3 +165,3 @@ /**

*/
cron(input?: string): IScheduleData;
cron(input?: string): ScheduleData;

@@ -173,6 +173,6 @@ /**

*/
text(input?: string): IScheduleData;
text(input?: string): ScheduleData;
}
export interface ITimer {
interface Timer {

@@ -185,3 +185,3 @@ /**

export interface ISchedule {
interface Schedule {

@@ -237,44 +237,44 @@ /**

export interface IRecurrenceBuilder extends IScheduleData {
interface RecurrenceBuilder extends ScheduleData {
/** a time period
*/
second(): IRecurrenceBuilder;
second(): RecurrenceBuilder;
/** a time period
*/
minute(): IRecurrenceBuilder;
minute(): RecurrenceBuilder;
/** a time period
*/
hour(): IRecurrenceBuilder;
hour(): RecurrenceBuilder;
/** a time period
*/
time(): IRecurrenceBuilder;
time(): RecurrenceBuilder;
/** a time period
*/
dayOfWeek(): IRecurrenceBuilder;
dayOfWeek(): RecurrenceBuilder;
/** a time period
*/
dayOfWeekCount(): IRecurrenceBuilder;
dayOfWeekCount(): RecurrenceBuilder;
/** a time period
*/
dayOfMonth(): IRecurrenceBuilder;
dayOfMonth(): RecurrenceBuilder;
/** a time period
*/
dayOfYear(): IRecurrenceBuilder;
dayOfYear(): RecurrenceBuilder;
/** a time period
*/
weekOfMonth(): IRecurrenceBuilder;
weekOfMonth(): RecurrenceBuilder;
/** a time period
*/
weekOfYear(): IRecurrenceBuilder;
weekOfYear(): RecurrenceBuilder;
/** a time period
*/
month(): IRecurrenceBuilder;
month(): RecurrenceBuilder;
/** a time period
*/
year(): IRecurrenceBuilder;
year(): RecurrenceBuilder;
/** a time period
*/
fullDate(): IRecurrenceBuilder;
fullDate(): RecurrenceBuilder;

@@ -287,3 +287,3 @@ /**

*/
on(...values: number[]): IRecurrenceBuilder;
on(...values: number[]): RecurrenceBuilder;
/**

@@ -293,12 +293,5 @@ * Specifies one or more specific vals of a time period information provider.

*
* @param {string} value - A string representing your value.
* @param value - A Date or string representing your value.
*/
on(value: string): IRecurrenceBuilder;
/**
* Specifies one or more specific vals of a time period information provider.
* When used to specify a time, a string indicating the 24-hour time may be used.
*
* @param {Date} date - A Date representing your value.
*/
on(date: Date): IRecurrenceBuilder;
on(value: Date | string): RecurrenceBuilder;

@@ -308,11 +301,5 @@ /**

*
* @param {number} [value] - A number representing your value.
* @param [value] - A number or string representing your value.
*/
every(value?: number): IRecurrenceBuilder;
/**
* Preceed a time period.
*
* @param {string} [value] - A string representing your value.
*/
every(value?: string): IRecurrenceBuilder;
every(value?: number | string): RecurrenceBuilder;

@@ -325,3 +312,3 @@ /**

*/
between(start: number, end: number): IRecurrenceBuilder;
between(start: number, end: number): RecurrenceBuilder;
/**

@@ -333,3 +320,3 @@ * Preceed a time period.

*/
between(start: string, end: string): IRecurrenceBuilder;
between(start: string, end: string): RecurrenceBuilder;

@@ -339,24 +326,12 @@ /**

*
* @param {number} value - A number representing your value.
* @param value - A number or string representing your value.
*/
after(value: number): IRecurrenceBuilder;
/**
* After a time period.
*
* @param {string} value - A string representing your value.
*/
after(value: string): IRecurrenceBuilder;
after(value: number | string): RecurrenceBuilder;
/**
* After a time period.
* Before a time period.
*
* @param {number} value - A number representing your value.
* @param value - A number or string representing your value.
*/
before(value: number): IRecurrenceBuilder;
/**
* After a time period.
*
* @param {string} value - A string representing your value.
*/
before(value: string): IRecurrenceBuilder;
before(value: number | string): RecurrenceBuilder;

@@ -366,11 +341,5 @@ /**

*
* @param {number} value - A number representing your value.
* @param value - A number or string representing your value.
*/
startingOn(value: number): IRecurrenceBuilder;
/**
* After a time period.
*
* @param {string} value - A string representing your value.
*/
startingOn(value: string): IRecurrenceBuilder;
startingOn(value: number | string): RecurrenceBuilder;

@@ -380,3 +349,3 @@ /**

*/
first(): IRecurrenceBuilder;
first(): RecurrenceBuilder;

@@ -386,3 +355,3 @@ /**

*/
last(): IRecurrenceBuilder;
last(): RecurrenceBuilder;

@@ -392,3 +361,3 @@ /**

*/
onWeekend(): IRecurrenceBuilder;
onWeekend(): RecurrenceBuilder;

@@ -398,3 +367,3 @@ /**

*/
onWeekday(): IRecurrenceBuilder;
onWeekday(): RecurrenceBuilder;

@@ -404,3 +373,3 @@ /**

*/
and(): IRecurrenceBuilder;
and(): RecurrenceBuilder;

@@ -410,3 +379,3 @@ /**

*/
except(): IRecurrenceBuilder;
except(): RecurrenceBuilder;

@@ -417,3 +386,3 @@ /**

*/
customPeriod(key: string): IRecurrenceBuilder;
customPeriod(key: string): RecurrenceBuilder;

@@ -424,6 +393,6 @@ /**

*/
customModifier(key: string, values: number): IRecurrenceBuilder;
customModifier(key: string, values: number): RecurrenceBuilder;
}
export interface IDateProvider {
interface DateProvider {

@@ -476,3 +445,3 @@ /**

*/
nextRollover(d: Date, val: number, constraint: IModifier, period: ITimePeriod): Date;
nextRollover(d: Date, val: number, constraint: Modifier, period: TimePeriod): Date;

@@ -489,6 +458,6 @@ /**

*/
prevRollover(d: Date, val: number, constraint: IModifier, period: ITimePeriod): Date;
prevRollover(d: Date, val: number, constraint: Modifier, period: TimePeriod): Date;
}
export interface ITimePeriod {
interface TimePeriod {

@@ -564,3 +533,3 @@ /**

export interface IModifier extends ITimePeriod {
interface Modifier extends TimePeriod {
/**

@@ -572,6 +541,6 @@ * Creates a new modified constraint.

*/
(constraint: ITimePeriod, value: number): ITimePeriod;
(constraint: TimePeriod, value: number): TimePeriod;
}
export interface IModifierStatic {
interface ModifierStatic {

@@ -581,3 +550,3 @@ /**

*/
after: IModifier;
after: Modifier;

@@ -587,6 +556,6 @@ /**

*/
before: IModifier;
before: Modifier;
}
export interface IStatic {
interface Static {

@@ -597,3 +566,3 @@ /**

*/
schedule(input: any): ISchedule;
schedule(input: any): Schedule;

@@ -604,7 +573,7 @@ /**

*/
parse: IParseStatic;
parse: ParseStatic;
/** Date Provider
*/
date: IDateProvider;
date: DateProvider;

@@ -617,3 +586,3 @@ /**

*/
setTimeout(callback: () => void, time: IScheduleData): ITimer;
setTimeout(callback: () => void, time: ScheduleData): Timer;
/**

@@ -625,3 +594,3 @@ * Set interval on window using given recurrence

*/
setInterval(callback: () => void, time: IScheduleData): ITimer;
setInterval(callback: () => void, time: ScheduleData): Timer;

@@ -631,47 +600,47 @@ /**

*/
time: ITimePeriod;
time: TimePeriod;
/**
* Second time period information provider.
*/
second: ITimePeriod;
second: TimePeriod;
/**
* Minute time period information provider.
*/
minute: ITimePeriod;
minute: TimePeriod;
/**
* Hour time period information provider.
*/
hour: ITimePeriod;
hour: TimePeriod;
/**
* Day time period information provider.
*/
day: ITimePeriod;
day: TimePeriod;
/**
* Day of week time period information provider.
*/
dayOfWeek: ITimePeriod;
dayOfWeek: TimePeriod;
/**
* Day of week in month time period information provider.
*/
dayOfWeekCount: ITimePeriod;
dayOfWeekCount: TimePeriod;
/**
* Day in year time period information provider.
*/
dayOfYear: ITimePeriod;
dayOfYear: TimePeriod;
/**
* Week of mobth time period information provider.
*/
weekOfMonth: ITimePeriod;
weekOfMonth: TimePeriod;
/**
* Week of yearfrom ISO 8601 time period information provider.
*/
weekOfYear: ITimePeriod;
weekOfYear: TimePeriod;
/**
* Month time period information provider.
*/
month: ITimePeriod;
month: TimePeriod;
/**
* Year time period information provider.
*/
year: ITimePeriod;
year: TimePeriod;

@@ -690,3 +659,3 @@ /**

*/
modifier: IModifierStatic
modifier: ModifierStatic;
}

@@ -709,2 +678,5 @@ }

*/
declare var later: Later.IStatic;
declare var later: later.Static;
export = later;
export as namespace later;
{
"name": "@types/later",
"version": "0.0.28",
"version": "1.2.0",
"description": "TypeScript definitions for LaterJS",
"license": "MIT",
"author": "Jason D Dryhurst-Smith <http://jasonds.co.uk/>",
"author": "Jason D Dryhurst-Smith <https://github.com/jasond-s>",
"main": "",

@@ -14,4 +14,5 @@ "repository": {

"dependencies": {},
"typings": "index.d.ts",
"typesPublisherContentHash": "e01764229841f02878398e85106d25578078fca41739c77d75ee5660201f6bb5"
"peerDependencies": {},
"typesPublisherContentHash": "a6920e1c45e10960e07d7b931c287d3368635e37aecb78fcb2655cc10e7ba322",
"typeScriptVersion": "2.0"
}

@@ -8,7 +8,6 @@ # Installation

# Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/later
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/later
Additional Details
* Last updated: Mon, 19 Sep 2016 17:28:59 GMT
* File structure: Global
* Last updated: Tue, 27 Dec 2016 05:52:39 GMT
* Library Dependencies: none

@@ -19,2 +18,2 @@ * Module Dependencies: none

# Credits
These definitions were written by Jason D Dryhurst-Smith <http://jasonds.co.uk/>.
These definitions were written by Jason D Dryhurst-Smith <https://github.com/jasond-s>.
{
"authors": "Jason D Dryhurst-Smith <http://jasonds.co.uk/>",
"definitionFilename": "index.d.ts",
"authors": "Jason D Dryhurst-Smith <https://github.com/jasond-s>",
"libraryDependencies": [],
"moduleDependencies": [],
"libraryMajorVersion": "0",
"libraryMinorVersion": "0",
"libraryMajorVersion": 1,
"libraryMinorVersion": 2,
"typeScriptVersion": "2.0",
"libraryName": "LaterJS",

@@ -12,8 +12,9 @@ "typingsPackageName": "later",

"sourceRepoURL": "https://www.github.com/DefinitelyTyped/DefinitelyTyped",
"sourceBranch": "types-2.0",
"kind": "Global",
"sourceBranch": "master",
"globals": [
"later"
],
"declaredModules": [],
"declaredModules": [
"later"
],
"files": [

@@ -23,3 +24,3 @@ "index.d.ts"

"hasPackageJson": false,
"contentHash": "e01764229841f02878398e85106d25578078fca41739c77d75ee5660201f6bb5"
"contentHash": "a6920e1c45e10960e07d7b931c287d3368635e37aecb78fcb2655cc10e7ba322"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc