údržba
This commit is contained in:
12
CyLukTs/lukan/node_modules/dayjs/esm/plugin/weekday/index.d.ts
generated
vendored
Normal file
12
CyLukTs/lukan/node_modules/dayjs/esm/plugin/weekday/index.d.ts
generated
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
import { PluginFunc } from 'dayjs/esm'
|
||||
|
||||
declare const plugin: PluginFunc
|
||||
export = plugin
|
||||
|
||||
declare module 'dayjs/esm' {
|
||||
interface Dayjs {
|
||||
weekday(): number
|
||||
|
||||
weekday(value: number): Dayjs
|
||||
}
|
||||
}
|
15
CyLukTs/lukan/node_modules/dayjs/esm/plugin/weekday/index.js
generated
vendored
Normal file
15
CyLukTs/lukan/node_modules/dayjs/esm/plugin/weekday/index.js
generated
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
export default (function (o, c) {
|
||||
var proto = c.prototype;
|
||||
|
||||
proto.weekday = function (input) {
|
||||
var weekStart = this.$locale().weekStart || 0;
|
||||
var $W = this.$W;
|
||||
var weekday = ($W < weekStart ? $W + 7 : $W) - weekStart;
|
||||
|
||||
if (this.$utils().u(input)) {
|
||||
return weekday;
|
||||
}
|
||||
|
||||
return this.subtract(weekday, 'day').add(input, 'day');
|
||||
};
|
||||
});
|
Reference in New Issue
Block a user