Skip to content

Commit

Permalink
chore: revert removed type definitions (#1361)
Browse files Browse the repository at this point in the history
  • Loading branch information
zardoy authored Feb 4, 2021
1 parent 8190961 commit b817098
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion types/plugin/duration.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ export as namespace plugin;
export = plugin

declare namespace plugin {
/**
* @deprecated Please use more strict types
*/
type DurationInputType = string | number | object
/**
* @deprecated Please use more strict types
*/
type DurationAddType = number | object | Duration

type DurationUnitsObjectType = Partial<{
[unit in Exclude<UnitTypeLongPlural, "dates"> | "weeks"]: number
}>;
Expand Down Expand Up @@ -76,4 +85,4 @@ declare module 'dayjs' {
*/
export const duration: plugin.CreateDurationType;
export function isDuration(d: any): d is plugin.Duration
}
}

0 comments on commit b817098

Please sign in to comment.