headintheclouddev / typings-suitescript-2.0

TypeScript typings for SuiteScript version 2.0
MIT License
145 stars 92 forks source link

In validateFieldContext, sublistId can be null #278

Closed anthony-unicare closed 4 months ago

anthony-unicare commented 4 months ago

Here's a patch:

diff --git a/node_modules/@hitc/netsuite-types/N/types.d.ts b/node_modules/@hitc/netsuite-types/N/types.d.ts
index 8d4d13c..dedfce9
--- a/node_modules/@hitc/netsuite-types/N/types.d.ts
+++ b/node_modules/@hitc/netsuite-types/N/types.d.ts
@@ -149,7 +149,7 @@ export namespace EntryPoints {

         interface validateFieldContext {
             currentRecord: N_record.ClientCurrentRecord;
-            sublistId: string;
+            sublistId: string | null;
             fieldId: string;
             line?: number;
             column?: number;
MrRob commented 4 months ago

@anthony-unicare Thanks for this, I'll include this update in the next release here