@btilford/md-check-compile-typescript
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

Installation

npm install --save-dev @btilford/md-check-compile-typescript

Setup the Typescript compiler

import {TsCompiler} from '@btilford/md-check-compile-typescript';

TsCompiler.supply(); // default configs, uses ${process.cwd()}/tsconfig.json
TsCompiler.supply('tsconfig.json'); // Provide a path to you tsconfig
TsCompiler.supply({/* compiler options */}); // Provide a configuration object

As a Node.js script

Inside your markdown file add a code fence starting with typescript.

```typescript node
import {ConsoleLog} from '@btilford/ts-base';

const log: Log = ConsoleLog.create('example');
log.info('Hello');
```

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    0
    • latest

Version History

Package Sidebar

Install

npm i @btilford/md-check-compile-typescript

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

1.16 MB

Total Files

52

Last publish

Collaborators

  • btilford