Add ts-check to build script

This commit is contained in:
SukkaW
2023-06-01 10:52:24 +08:00
parent a1cccf9c88
commit 9a307709a5
7 changed files with 25 additions and 2 deletions

View File

@@ -1,3 +1,4 @@
// @ts-check
const Piscina = require('piscina');
// const { isCI } = require('ci-info');
@@ -5,7 +6,9 @@ const fullsetDomainStartsWithADot = Piscina.workerData
const totalLen = fullsetDomainStartsWithADot.length;
// const log = isCI ? () => { } : console.log.bind(console);
/**
* @param {{ chunk: string[] }} param0
*/
module.exports = ({ chunk }) => {
const chunkLength = chunk.length;
const outputToBeRemoved = new Int8Array(chunkLength);