2020-08-09 01:01:34 +00:00
|
|
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
|
|
|
|
[Home](./index.md) > [@apextoaster/js-yaml-schema](./js-yaml-schema.md) > [createInclude](./js-yaml-schema.createinclude.md)
|
|
|
|
|
|
|
|
## createInclude() function
|
|
|
|
|
2021-04-17 23:57:18 +00:00
|
|
|
Instantiate an include type with a copy of the provided options, returning the include type and its schema setter.
|
2020-08-09 01:01:34 +00:00
|
|
|
|
|
|
|
<b>Signature:</b>
|
|
|
|
|
|
|
|
```typescript
|
2021-03-28 00:33:56 +00:00
|
|
|
export declare function createInclude(options: Readonly<IncludeOptions>): {
|
|
|
|
includeType: YamlType;
|
|
|
|
setSchema: (schema: Schema) => void;
|
|
|
|
};
|
2020-08-09 01:01:34 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
| Parameter | Type | Description |
|
|
|
|
| --- | --- | --- |
|
2021-03-28 00:33:56 +00:00
|
|
|
| options | Readonly<[IncludeOptions](./js-yaml-schema.includeoptions.md)<!-- -->> | |
|
2020-08-09 01:01:34 +00:00
|
|
|
|
|
|
|
<b>Returns:</b>
|
|
|
|
|
2021-03-28 00:33:56 +00:00
|
|
|
{ includeType: YamlType; setSchema: (schema: Schema) => void; }
|
2020-08-09 01:01:34 +00:00
|
|
|
|