údržba
This commit is contained in:
20
CyLukTs/lukan/node_modules/dayjs/esm/plugin/toObject/index.d.ts
generated
vendored
Normal file
20
CyLukTs/lukan/node_modules/dayjs/esm/plugin/toObject/index.d.ts
generated
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
import { PluginFunc } from 'dayjs/esm'
|
||||
|
||||
declare const plugin: PluginFunc
|
||||
export = plugin
|
||||
|
||||
interface DayjsObject {
|
||||
years: number
|
||||
months: number
|
||||
date: number
|
||||
hours: number
|
||||
minutes: number
|
||||
seconds: number
|
||||
milliseconds: number
|
||||
}
|
||||
|
||||
declare module 'dayjs/esm' {
|
||||
interface Dayjs {
|
||||
toObject(): DayjsObject
|
||||
}
|
||||
}
|
15
CyLukTs/lukan/node_modules/dayjs/esm/plugin/toObject/index.js
generated
vendored
Normal file
15
CyLukTs/lukan/node_modules/dayjs/esm/plugin/toObject/index.js
generated
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
export default (function (o, c) {
|
||||
var proto = c.prototype;
|
||||
|
||||
proto.toObject = function () {
|
||||
return {
|
||||
years: this.$y,
|
||||
months: this.$M,
|
||||
date: this.$D,
|
||||
hours: this.$H,
|
||||
minutes: this.$m,
|
||||
seconds: this.$s,
|
||||
milliseconds: this.$ms
|
||||
};
|
||||
};
|
||||
});
|
Reference in New Issue
Block a user