Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
# Conflicts:
#	src/index.d.ts
  • Loading branch information
Ben Grynhaus committed Feb 18, 2019
1 parent 47d9957 commit 279e2fe
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ export type ConfigType = string | number | Date | Dayjs

export type OptionType = { locale: string }

export type UnitTypeShort = 'd' | 'M' | 'y' | 'h' | 'm' | 's' | 'ms'
export type UnitTypeSingular = 'millisecond' | 'second' | 'minute' | 'hour' | 'day' | 'week' | 'month' | 'quarter' | 'year' | 'date' | UnitTypeShort;
export type UnitTypeShort = 'd' | 'M' | 'y' | 'h' | 'm' | 's' | 'ms'
export type UnitTypeSingular = 'millisecond' | 'second' | 'minute' | 'hour' | 'day' | 'week' | 'month' | 'quarter' | 'year' | 'date' | UnitTypeShort;
export type UnitTypePlural = 'milliseconds' | 'seconds' | 'minutes' | 'hours' | 'days' | 'weeks' | 'months' | 'quarters' | 'years' | 'dates'
export type UnitType = UnitTypeSingular | UnitTypePlural

type OpUnitTypeShort = 'w'
export type OpUnitType = UnitType | "week" | OpUnitTypeShort;
export type OpUnitTypeShort = 'w'
export type OpUnitType = UnitType | "week" | OpUnitTypeShort;

export type PluginFunc<TPlugin> = (option: ConfigType, d1: Dayjs, d2: Dayjs) => void

Expand Down Expand Up @@ -60,13 +60,13 @@ export interface dayjs<TPlugin = {}> {

set(unit: UnitType, value: number): Dayjs

add(value: number, unit: OpUnitType): Dayjs
add(value: number, unit: OpUnitType): Dayjs

subtract(value: number, unit: OpUnitType): Dayjs
subtract(value: number, unit: OpUnitType): Dayjs

startOf(unit: OpUnitType): Dayjs
startOf(unit: OpUnitType): Dayjs

endOf(unit: OpUnitType): Dayjs
endOf(unit: OpUnitType): Dayjs

format(template?: string): string

Expand Down

0 comments on commit 279e2fe

Please sign in to comment.