Skip to content

Commit

Permalink
Remove trailing spaces in index.d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
ypresto committed Nov 29, 2018
1 parent 9de97d0 commit 183bf8e
Showing 1 changed file with 32 additions and 32 deletions.
64 changes: 32 additions & 32 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ declare namespace dayjs {
export type OptionType = { locale: string }

export type UnitType = 'millisecond' | 'second' | 'minute' | 'hour' | 'day' | 'week' | 'month' | 'quarter' | 'year' | 'date'

interface DayjsObject {
years: number
months: number
Expand All @@ -18,68 +18,68 @@ declare namespace dayjs {
seconds: number
milliseconds: number
}

class Dayjs {
constructor (config?: ConfigType)

clone(): Dayjs

isValid(): boolean

year(): number

month(): number

date(): number

day(): number

hour(): number

minute(): number

second(): number

millisecond(): number

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

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

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

startOf(unit: UnitType): Dayjs

endOf(unit: UnitType): Dayjs

format(template?: string): string

diff(dayjs: Dayjs, unit: UnitType, float?: boolean): number

valueOf(): number

unix(): number

daysInMonth(): number

toDate(): Date

toArray(): number[]

toJSON(): string

toISOString(): string

toObject(): DayjsObject

toString(): string

isBefore(dayjs: Dayjs): boolean

isSame(dayjs: Dayjs): boolean

isAfter(dayjs: Dayjs): boolean

isLeapYear(): boolean

locale(arg1: any, arg2?: any): Dayjs
Expand Down

0 comments on commit 183bf8e

Please sign in to comment.