chore: Update the point to be null

This commit is contained in:
BluJ
2023-04-28 09:56:19 -06:00
parent 0e86e44bc3
commit b4aa1f5d4a

View File

@@ -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}"`)