0.2.1 • Published 10 months ago

@decentm/concourse-ts-resource-npm v0.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

Typed Git resource for concourse-ts

Installation

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

yarn add -D @decentm/concourse-ts @decentm/concourse-ts-resource-npm

Usage

The Git 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 {GitResource, GitResourceType} from '@decentm/concourse-ts-resource-npm'

export class CorpityCorpGit extends GitResource {
  constructor(name: string, init?: Type.Initer<CorpityCorpGit>) {
    super(name, new GitResourceType(/*...*/))

    // Set defaults here

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

10 months ago