Skip to content
This repository has been archived by the owner on Mar 27, 2020. It is now read-only.

Latest commit

 

History

History

plugin-lib-typescript-generate

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

🏭 plugin-lib-typescript-generate

npm linux windows coverage deps

Generate .d.ts files using TypeScript.

Install

$ yarn add --dev @start/plugin-lib-typescript-generate
# or
$ npm install --save-dev @start/plugin-lib-typescript-generate

Usage

Signature

typescriptGenerate(outDir: string, options?: CompilerOptions)

options

TypeScript Compiler options.

Default:

{
  allowSyntheticDefaultImports: true,
  lib: 'esnext',
  moduleResolution: 'node'
}

Example

import sequence from '@start/plugin-sequence'
import find from '@start/plugin-find'
import typescriptGenerate from '@start/plugin-lib-typescript-generate'

export const task = () =>
  sequence(
    find('src/index.ts'),
    typescriptGenerate('build/')
  )