Skip to content

Commit

Permalink
Jenkins test
Browse files Browse the repository at this point in the history
  • Loading branch information
adzil committed Dec 20, 2016
1 parent f2d681a commit 23cf318
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
node {
stage('Build') {
sh 'npm install'
}
stage('Test') {
sh 'npm test'
}
}
27 changes: 27 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/**
* TypeScript definition for Setlist
* Copyright (c) 2016 Fadhli Dzil Ikram
*/

interface Promisifier {
(...args: any[]): Promise<any>
}

interface GenFunction {
(...args: any[]): IterableIterator<any>
}

interface run {
(fn: PromiseLike<any> | GenFunction | IterableIterator<any>): Promise<any>
callbackify(fn: Function): Function
promisify(fn: Function): Promisifier
proxify(fn: Object): void
isPromise(obj: any): obj is PromiseLike<any>
isGenerator(obj: any): obj is IterableIterator<any>
isGeneratorFunction(obj: any): obj is GenFunction
}

declare module 'setlist' {
var run: run
export = run
}

0 comments on commit 23cf318

Please sign in to comment.