UNPKG

@types/k6

Version:
17 lines (16 loc) 849 B
/** * Given a name and a function that returns an array, the SharedArray constructor returns the same array but sharing the array memory between VUs. * https://grafana.com/docs/k6/latest/javascript-api/k6-data/sharedarray/ */ export const SharedArray: { /** * Given a name and a function that returns an array, the SharedArray constructor returns the same array but sharing the array memory between VUs. * https://grafana.com/docs/k6/latest/javascript-api/k6-data/sharedarray/ */ new(name: string, callback: () => []): []; /** * Given a name and a function that returns an array, the SharedArray constructor returns the same array but sharing the array memory between VUs. * https://grafana.com/docs/k6/latest/javascript-api/k6-data/sharedarray/ */ new<T>(name: string, callback: () => T[]): T[]; };