pull/8160/head
Yuichiro Yamashita 4 years ago
parent 762d0429b1
commit 2552adaf35

@ -3,8 +3,12 @@
const { execSync } = require('child_process'); const { execSync } = require('child_process');
const { readFileSync, writeFileSync } = require('fs'); const { readFileSync, writeFileSync } = require('fs');
try {
execSync('tsc -p src/compiler --emitDeclarationOnly && tsc -p src/runtime --emitDeclarationOnly'); execSync('tsc -p src/compiler --emitDeclarationOnly && tsc -p src/runtime --emitDeclarationOnly');
} catch (err) {
console.error(err.stderr.toString());
throw err;
}
// We need to add these types to the .d.ts files here because if we add them before building, the build will fail, // We need to add these types to the .d.ts files here because if we add them before building, the build will fail,
// because the TS->JS transformation doesn't know these exports are types and produces code that fails at runtime. // because the TS->JS transformation doesn't know these exports are types and produces code that fails at runtime.
// We can't use `export type` syntax either because the TS version we're on doesn't have this feature yet. // We can't use `export type` syntax either because the TS version we're on doesn't have this feature yet.

@ -198,7 +198,7 @@ export function draw(node: SVGElement & { getTotalLength(): number }, {
delay, delay,
duration, duration,
easing, easing,
css: (t, u) => ` css: (_, u) => `
stroke-dasharray: ${len}; stroke-dasharray: ${len};
stroke-dashoffset: ${u * len}; stroke-dashoffset: ${u * len};
` `

Loading…
Cancel
Save