From b4aa1f5d4a0666781cb2593366249aaad0a83e21 Mon Sep 17 00:00:00 2001 From: BluJ Date: Fri, 28 Apr 2023 09:56:19 -0600 Subject: [PATCH] chore: Update the point to be null --- scripts/oldSpecToBuilder.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/oldSpecToBuilder.ts b/scripts/oldSpecToBuilder.ts index e39deb9..70817c0 100644 --- a/scripts/oldSpecToBuilder.ts +++ b/scripts/oldSpecToBuilder.ts @@ -1,5 +1,6 @@ import * as fs from "fs" +// https://stackoverflow.com/questions/2970525/converting-any-string-into-camel-case export function camelCase(value: string) { return value.replace( /^([A-Z])|[\s-_](\w)/g, @@ -214,7 +215,7 @@ export default async function makeFileContentFromOld( return `Value.list(${list})` } case "pointer": { - return `/* TODO deal with point removed ${JSON.stringify(value)} */` + return `/* TODO deal with point removed point "${value.name}" */null as any` } } throw Error(`Unknown type "${value.type}"`)