Skip to content

Scripting API / utils/type-utils

utils/type-utils

Type Aliases

CopyableCreate

CopyableCreate<T, U> = Omit<T, "copyFrom"> & object

Type Declaration

Name Type Description
copyFrom? U If set, all properties not explicitly set in this object will be copied from the test with this script ID. Note that the existing test's column and row will not be copied (specify where the test should be created with the location property). The existing test with this script ID must be of the same type and in the same sub-inspection (or global tag area) where the new test will be created. If the existing test contains other tests, those tests will be copied and given auto-generated script IDs. Use getProperties() on the new test to retrieve these auto-generated IDs.

Type Parameters

Type Parameter
T extends CopyableTestWorkerCreate
U extends string