mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-18 07:18:38 +02:00
Switch ts and babel for swc-loader
Replace old <> assertion syntax
This commit is contained in:
@@ -564,8 +564,8 @@ export const codingContractTypesMetadata: ICodingContractTypeMetadata[] = [
|
||||
},
|
||||
{
|
||||
desc: (data: any[]): string => {
|
||||
const k: number = <number>data[0];
|
||||
const prices: number[] = <number[]>data[1];
|
||||
const k: number = data[0];
|
||||
const prices: number[] = data[1];
|
||||
return [
|
||||
"You are given the following array with two elements:\n\n",
|
||||
`[${k}, [${prices}]]\n\n`,
|
||||
@@ -595,8 +595,8 @@ export const codingContractTypesMetadata: ICodingContractTypeMetadata[] = [
|
||||
name: "Algorithmic Stock Trader IV",
|
||||
numTries: 10,
|
||||
solver: (data: any[], ans: string): boolean => {
|
||||
const k: number = <number>data[0];
|
||||
const prices: number[] = <number[]>data[1];
|
||||
const k: number = data[0];
|
||||
const prices: number[] = data[1];
|
||||
|
||||
const len = prices.length;
|
||||
if (len < 2) {
|
||||
|
||||
Reference in New Issue
Block a user