---
title: ArtifactBag
updated_at: '2026-11-25T17:36:18+01:00'
created_at: '2026-03-07T03:07:51+01:00'
symbol:
  kind: type
  name: ArtifactBag
  signatures:
    - 'type ArtifactBag = Map<string, [[reference/api/core/Artifact|Artifact]]>'
  members:
    - name: clear
      kind: property
      signature: 'clear: () => void'
      description: Removes all elements from the Map.
    - name: delete
      kind: property
      signature: 'delete: (key: string) => boolean'
    - name: forEach
      kind: property
      signature: >-
        forEach: (callbackfn: (value: [[reference/api/core/Artifact|Artifact]],
        key: string, map: Map<string, [[reference/api/core/Artifact|Artifact]]>)
        => void, thisArg?: any) => void
      description: >-
        Executes a provided function once per each key/value pair in the Map, in
        insertion order.
    - name: get
      kind: property
      signature: >-
        get: (key: string) => [[reference/api/core/Artifact|Artifact]] |
        undefined
      description: >-
        Returns a specified element from the Map object. If the value that is
        associated to the provided key is an object, then you will get a
        reference to that object and any change made to that object will
        effectively modify it inside the Map.
    - name: has
      kind: property
      signature: 'has: (key: string) => boolean'
    - name: set
      kind: property
      signature: >-
        set: (key: string, value: [[reference/api/core/Artifact|Artifact]]) =>
        [[reference/api/core/ArtifactBag|ArtifactBag]]
      description: >-
        Adds a new element with a specified key and value to the Map. If an
        element with the same key already exists, the element will be updated.
    - name: size
      kind: property
      signature: 'size: number'
    - name: entries
      kind: property
      signature: >-
        entries: () => MapIterator<[string,
        [[reference/api/core/Artifact|Artifact]]]>
      description: 'Returns an iterable of key, value pairs for every entry in the map.'
    - name: keys
      kind: property
      signature: 'keys: () => MapIterator<string>'
      description: Returns an iterable of keys in the map
    - name: values
      kind: property
      signature: 'values: () => MapIterator<[[reference/api/core/Artifact|Artifact]]>'
      description: Returns an iterable of values in the map
    - name: __@iterator@1180
      kind: property
      signature: >-
        "__@iterator@1180": () => MapIterator<[string,
        [[reference/api/core/Artifact|Artifact]]]>
      description: Returns an iterable of entries in the map.
    - name: __@toStringTag@1624
      kind: property
      signature: '"__@toStringTag@1624": string'
  source: >-
    https://github.com/mia-cx/svartz/blob/711f3906a713c8b9a5a572d0f34c85e90c3bc3d1/packages/core/src/types.ts#L132
description: ''
---

# ArtifactBag
