# @perfect-schema/extends

> Extends PerfectSchema instances from other schemas.

Latest version **1.1.4** (published 2019-02-19) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @perfect-schema/extends
pnpm add @perfect-schema/extends
yarn add @perfect-schema/extends
bun add @perfect-schema/extends
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.1.4 |
| Published | 2019-02-19 |
| First published | 2018-08-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 8.2.1 |
| Dependencies | 1 |
| Unpacked size | 6.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Yanick Rochon |
| Maintainers | yanickrochon |
| Keywords | perfect-schema, extends |

## Links

- npm: https://www.npmjs.com/package/@perfect-schema/extends
- Repository: https://github.com/perfect-schema/extends
- Homepage: https://perfect-schema.github.io/extends/
- Issues: https://github.com/perfect-schema/extends/issues
- npm.io page: https://npm.io/package/@perfect-schema/extends

## Dependencies (1)

- [babel-eslint](https://npm.io/package/babel-eslint.md) ^10.0.1

## Alternatives

- [@regle/core](https://npm.io/package/@regle/core.md) — 47.0K weekly downloads
- [typeof-arguments](https://npm.io/package/typeof-arguments.md) — 12.5K weekly downloads
- [@lokalise/projects-engine-contracts](https://npm.io/package/@lokalise/projects-engine-contracts.md) — 978 weekly downloads
- [@osjwnpm/nam-laboriosam-quibusdam](https://npm.io/package/@osjwnpm/nam-laboriosam-quibusdam.md) — 70 weekly downloads
- [@oridune/validator](https://npm.io/package/@oridune/validator.md) — 16 weekly downloads

## Recent versions

- 1.1.4 (latest) — 2019-02-19
- 1.1.3 — 2018-12-18
- 1.1.2 — 2018-12-14
- 1.1.1 — 2018-12-14
- 1.1.0 — 2018-09-10
- 1.0.1 — 2018-09-07
- 1.0.0 — 2018-08-21

## README

# Perfect Schema - Extends Plugin

Extends PerfectSchema instances with other schemas.


## Install

```
npm i -S @perfect-schema/extends
```

## Usage

```js
import PerfectSchema from '@perfect-schema/base';
import extendsPlugin from '@perfect-schema/extends';


PerfectSchema.use(extendsPlugin);


const baseSchema = new PerfectSchema({
  foo: String,
  bar: Boolean
});


const schema = new PerfectSchema({
  foo: {
    type: String,
    minLength: 10,
    maxLength: 20
  }
}, {
  extends: baseSchema
});

schema.fieldNames;
// => ['foo', 'bar']
```

## Documentation

* [Perfect Schema Documentation](https://perfect-schema.github.io/perfect-schema/)


## license

MIT

---
_Source: https://npm.io/package/@perfect-schema/extends · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
