<commit_before>typescript-after-extends
------------------------
[![Build Status](https://travis-ci.org/pine613/typescript-after-extends.svg?branch=master)](https://travis-ci.org/pine613/typescript-after-extends)

## Usage

```
$ npm install typescript-after-extends
```

## Examples
### Basic example

```ts
var afterExtends: any = require('typescript-after-extends');

class Base {
    foo = 1;
    _baz = 0;

    bar() {
        return 'bar';
    }

    get baz() {
        return this._baz;
    }

    set baz(_baz: number) {
        this._baz = _baz;
    }
}

class SubImpl {
}

var Sub: typeof Base = afterExtends(SubImpl, Base);

var sub = new Sub();

sub instanceof Base;    // true
sub instanceof Sub;     // true
sub instanceof SubImpl; // false

sub.bar();    // 'bar'
sub.baz;      // 0
sub.baz = 10;
sub.baz;      // 10
```

## Developing
### Developing environment

- JavaScript & TypeScript
- gulp
- tsd

### Build

```
$ npm install
$ npm run typings
$ npm run build
```

### Test

```
$ npm run build-tests
$ npm test
```<commit_msg>Add David<commit_after>typescript-after-extends
------------------------
[![Build Status](https://travis-ci.org/pine613/typescript-after-extends.svg?branch=master)](https://travis-ci.org/pine613/typescript-after-extends)
[![devDependency Status](https://david-dm.org/pine613/typescript-after-extends/dev-status.svg)](https://david-dm.org/pine613/typescript-after-extends#info=devDependencies)

## Usage

```
$ npm install typescript-after-extends
```

## Examples
### Basic example

```ts
var afterExtends: any = require('typescript-after-extends');

class Base {
    foo = 1;
    _baz = 0;

    bar() {
        return 'bar';
    }

    get baz() {
        return this._baz;
    }

    set baz(_baz: number) {
        this._baz = _baz;
    }
}

class SubImpl {
}

var Sub: typeof Base = afterExtends(SubImpl, Base);

var sub = new Sub();

sub instanceof Base;    // true
sub instanceof Sub;     // true
sub instanceof SubImpl; // false

sub.bar();    // 'bar'
sub.baz;      // 0
sub.baz = 10;
sub.baz;      // 10
```

## Developing
### Developing environment

- JavaScript & TypeScript
- gulp
- tsd

### Build

```
$ npm install
$ npm run typings
$ npm run build
```

### Test

```
$ npm run build-tests
$ npm test
```
{'fraction_non_alphanumeric': 0.17102532171025323, 'fraction_numerical': 0.013283520132835201, 'mean_word_length': 2.1710526315789473, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6752647', 'n_tokens_mistral': 958, 'n_tokens_neox': 824, 'n_words': 177}