@decentm/concourse-ts-resource-registry-image

0.2.2 • Public • Published

concourse-ts-resource-registry-image

Typed RegistryImage resource for concourse-ts

Installation

npm i --save-dev @decentm/concourse-ts @decentm/concourse-ts-resource-registry-image

yarn add -D @decentm/concourse-ts @decentm/concourse-ts-resource-registry-image

Usage

The RegistryImage resource is a typed class that extends the base Resource class. Therefore, it has the same properties. See the Resource documentation for details.

import {Type} from '@decentm/concourse-ts'
import {RegistryImageResource, RegistryImageResourceType} from '@decentm/concourse-ts-resource-registry-image'

export class CorpityCorpRegistryImage extends RegistryImageResource {
  constructor(name: string, init?: Type.Initer<CorpityCorpRegistryImage>) {
    super(name, new RegistryImageResourceType(/*...*/))

    // Set defaults here

    if (init) {
      init(this)
    }
  }
}

Readme

Keywords

none

Package Sidebar

Install

npm i @decentm/concourse-ts-resource-registry-image

Weekly Downloads

5

Version

0.2.2

License

MIT

Unpacked Size

11 kB

Total Files

7

Last publish

Collaborators

  • decentm