Skip to content

Commit

Permalink
Add typings for tyescript & tslint blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
zcei committed Mar 30, 2018
1 parent 086fd83 commit 7e8d49a
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
25 changes: 25 additions & 0 deletions packages/tslint/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// Type definitions for @webpack-blocks/tslint 1.0.0
// Project: webpack-blocks
// Definitions by: Stephan Schneider <https://github.com/zcei>

import { Block } from '@webpack-blocks/core'
import { Configuration, ILinterOptions } from 'tslint'


type TSLintLoaderOptions = ILinterOptions & {
configuration: Configuration.IConfigurationFile
tsConfigFile: string
typeCheck: boolean
emitErrors: boolean
failOnHint: boolean
fileOutput: {
dir: string
ext: string
clean: boolean
header: string
footer: string
}
}

declare function tslint(options: TSLintLoaderOptions): Block
export = tslint
10 changes: 10 additions & 0 deletions packages/typescript/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Type definitions for @webpack-blocks/typescript 1.0.0
// Project: webpack-blocks
// Definitions by: Stephan Schneider <https://github.com/zcei>

import { Block } from '@webpack-blocks/core'

import { LoaderConfig } from 'awesome-typescript-loader/dist/interfaces'

declare function typescript (options: LoaderConfig): Block
export = typescript

0 comments on commit 7e8d49a

Please sign in to comment.