@decentm/concourse-ts-resource-bitbucket-pr
v0.2.1
Published
`npm i --save-dev @decentm/concourse-ts @decentm/concourse-ts-resource-bitbucket-pr`
Downloads
7
Readme
Typed BitbucketPr resource for concourse-ts
Installation
npm i --save-dev @decentm/concourse-ts @decentm/concourse-ts-resource-bitbucket-pr
yarn add -D @decentm/concourse-ts @decentm/concourse-ts-resource-bitbucket-pr
Usage
The BitbucketPr 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 {BitbucketPrResource, BitbucketPrResourceType} from '@decentm/concourse-ts-resource-bitbucket-pr'
export class CorpityCorpBitbucketPr extends BitbucketPrResource {
constructor(name: string, init?: Type.Initer<CorpityCorpBitbucketPr>) {
super(name, new BitbucketPrResourceType(/*...*/))
// Set defaults here
if (init) {
init(this)
}
}
}