ChuckJonas / ts-force

A Salesforce REST Client written in Typescript for Typescript
88 stars 21 forks source link

ts-force-gen: Picklist (Multi-select) generates the type as string instead of string[] #64

Closed ScottMGerstl closed 5 years ago

ScottMGerstl commented 5 years ago

version: 2.6.0 Example:

@sField({ 
   apiName: 'Groups__c', 
   createable: true, 
   updateable: true, 
   required: false,
   reference: undefined, 
   childRelationship: false, 
   salesforceType: SalesforceFieldType.MULTIPICKLIST, 
   salesforceLabel: 'Groups', 
   externalId: false 
})
public groups: string;
ChuckJonas commented 5 years ago

interesting, Looks like it only correctly generates as an [] when enforcePicklistValues is set in the config.

Will fix

ChuckJonas commented 5 years ago

fixed in v2.6.2