mirror of
https://github.com/SukkaW/Surge.git
synced 2026-02-01 11:31:54 +08:00
Add ts-check to build script
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user