initial commit - far from runnable
This commit is contained in:
commit
db057ce342
8614 changed files with 1032171 additions and 0 deletions
24
node_modules/dayjs/plugin/relativeTime.d.ts
generated
vendored
Normal file
24
node_modules/dayjs/plugin/relativeTime.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
import { PluginFunc, ConfigType } from 'dayjs'
|
||||
|
||||
declare interface RelativeTimeThreshold {
|
||||
l: string
|
||||
r?: number
|
||||
d?: string
|
||||
}
|
||||
|
||||
declare interface RelativeTimeOptions {
|
||||
rounding?: (num: number) => number
|
||||
thresholds?: RelativeTimeThreshold[]
|
||||
}
|
||||
|
||||
declare const plugin: PluginFunc<RelativeTimeOptions>
|
||||
export = plugin
|
||||
|
||||
declare module 'dayjs' {
|
||||
interface Dayjs {
|
||||
fromNow(withoutSuffix?: boolean): string
|
||||
from(compared: ConfigType, withoutSuffix?: boolean): string
|
||||
toNow(withoutSuffix?: boolean): string
|
||||
to(compared: ConfigType, withoutSuffix?: boolean): string
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue