mirror of https://github.com/sveltejs/svelte
parent
502451375d
commit
291703d291
@ -1 +0,0 @@
|
||||
export * from '../types/runtime/interpolate/index';
|
@ -1,16 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
function dates(a, b) {
|
||||
const difference = (b = new Date(b).getTime()) - (a = new Date(a).getTime());
|
||||
const d = new Date(a);
|
||||
return (t) => (d.setTime(a + difference * t), d);
|
||||
}
|
||||
function numbers(a, b) {
|
||||
const d = (b = +b) - (a = +a);
|
||||
return (t) => a + d * t;
|
||||
}
|
||||
|
||||
exports.dates = dates;
|
||||
exports.numbers = numbers;
|
@ -1,11 +0,0 @@
|
||||
function dates(a, b) {
|
||||
const difference = (b = new Date(b).getTime()) - (a = new Date(a).getTime());
|
||||
const d = new Date(a);
|
||||
return (t) => (d.setTime(a + difference * t), d);
|
||||
}
|
||||
function numbers(a, b) {
|
||||
const d = (b = +b) - (a = +a);
|
||||
return (t) => a + d * t;
|
||||
}
|
||||
|
||||
export { dates, numbers };
|
@ -1,5 +0,0 @@
|
||||
{
|
||||
"main": "./index",
|
||||
"module": "./index.mjs",
|
||||
"types": "./index.d.ts"
|
||||
}
|
Loading…
Reference in new issue