initial commit - far from runnable
This commit is contained in:
commit
db057ce342
8614 changed files with 1032171 additions and 0 deletions
10
node_modules/dayjs/esm/plugin/isBetween/index.d.ts
generated
vendored
Normal file
10
node_modules/dayjs/esm/plugin/isBetween/index.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import { PluginFunc, ConfigType, OpUnitType } from 'dayjs/esm'
|
||||
|
||||
declare const plugin: PluginFunc
|
||||
export = plugin
|
||||
|
||||
declare module 'dayjs/esm' {
|
||||
interface Dayjs {
|
||||
isBetween(a: ConfigType, b: ConfigType, c?: OpUnitType | null, d?: '()' | '[]' | '[)' | '(]'): boolean
|
||||
}
|
||||
}
|
||||
10
node_modules/dayjs/esm/plugin/isBetween/index.js
generated
vendored
Normal file
10
node_modules/dayjs/esm/plugin/isBetween/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
export default (function (o, c, d) {
|
||||
c.prototype.isBetween = function (a, b, u, i) {
|
||||
var dA = d(a);
|
||||
var dB = d(b);
|
||||
i = i || '()';
|
||||
var dAi = i[0] === '(';
|
||||
var dBi = i[1] === ')';
|
||||
return (dAi ? this.isAfter(dA, u) : !this.isBefore(dA, u)) && (dBi ? this.isBefore(dB, u) : !this.isAfter(dB, u)) || (dAi ? this.isBefore(dA, u) : !this.isAfter(dA, u)) && (dBi ? this.isAfter(dB, u) : !this.isBefore(dB, u));
|
||||
};
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue