Skip to content

Function: newPack

core.newPack

newPack(definition?): PackDefinitionBuilder

Creates a new skeleton pack definition that can be added to.

Example

export const pack = newPack();
pack.addFormula({resultType: ValueType.String, name: 'MyFormula', ...});
pack.addSyncTable('MyTable', ...);
pack.setUserAuthentication({type: AuthenticationType.HeaderBearerToken});

Parameters

Name Type
definition? Partial<PackVersionDefinition>

Returns

PackDefinitionBuilder

Defined in

builder.ts:39