﻿# Scripts in TypeScript

> [HTML Version](type-script.html)

A script is TypeScript code that allows you to implement complex logic and access system objects.

````
начало внимание

````
The principles of script writing in BRIX, the description of data types and global constants, etc. can be found in [BRIX TS SDK](https://tssdk.brix365.com/en/).

````
конец внимание

````
Scripts are used in business processes and widgets. The following articles provide detailed information on the use of scripts:

- [Script activity](360027203731.md). How to add a Script activity to a business processes.

- [Scripts tab](360028476691.md). This article describes the script editing tab in business processes.

- [Gateways](360012495911.md). This article shows how you can use scripts in gateways to calculate the values of service variables.

- [Script](script-activity.md#scripts-tab). In this article, you will learn how to configure script execution at a certain step of a business process in the module.

- [Scripts in widgets](client_server_scripts.md), [Code widget](code_widget.md), [Button](button_widget.md#script). This article describes how to use scripts in widgets to process app data, pages, or interaction with external systems.;

- [Additional parameters](360009207779.md). In this article you will find detailed information on how to set additional parameters for scripts. You will also see an example of their use. Additional parameters allow you to customize a process or make changes to a script without republishing.

- [Global constants](global-constants.md). In this article, you will find out how to use global constants in scripts for processes, widgets, and modules.

- [Batch operations with app items in scripts](batch-actions.md). This article describes how to use batch methods in scripts for adding items or updating their fields.