refactor(recursive-list): remove superfluous nested prop

This commit is contained in:
Eric Y Liu 2021-07-03 04:50:07 -07:00
commit e3f89c0afb
3 changed files with 4 additions and 21 deletions

View file

@ -3045,11 +3045,10 @@ export interface RecursiveListNode {
### Props
| Prop name | Kind | Reactive | Type | Default value | Description |
| :-------- | :--------------- | :------- | :-------------------------------------------------------------------------- | ------------------------ | --------------------------------------- |
| children | <code>let</code> | No | <code>Array<RecursiveListNode & { children?: RecursiveListNode[]; }></code> | <code>[]</code> | Specify the children to render |
| type | <code>let</code> | No | <code>"unordered" &#124; "ordered" &#124; "ordered-native"</code> | <code>"unordered"</code> | Specify the type of list to render |
| nested | <code>let</code> | No | <code>boolean</code> | <code>false</code> | Set to `true` to use the nested variant |
| Prop name | Kind | Reactive | Type | Default value | Description |
| :-------- | :--------------- | :------- | :-------------------------------------------------------------------------- | ------------------------ | ---------------------------------- |
| children | <code>let</code> | No | <code>Array<RecursiveListNode & { children?: RecursiveListNode[]; }></code> | <code>[]</code> | Specify the children to render |
| type | <code>let</code> | No | <code>"unordered" &#124; "ordered" &#124; "ordered-native"</code> | <code>"unordered"</code> | Specify the type of list to render |
### Slots

View file

@ -7887,16 +7887,6 @@
"isFunction": false,
"constant": false,
"reactive": false
},
{
"name": "nested",
"kind": "let",
"description": "Set to `true` to use the nested variant",
"type": "boolean",
"value": "false",
"isFunction": false,
"constant": false,
"reactive": false
}
],
"slots": [],

View file

@ -19,12 +19,6 @@ export interface RecursiveListProps {
* @default "unordered"
*/
type?: "unordered" | "ordered" | "ordered-native";
/**
* Set to `true` to use the nested variant
* @default false
*/
nested?: boolean;
}
export default class RecursiveList extends SvelteComponentTyped<