Skip to content

Function: 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:38