Skip to content

Commit

Permalink
Fix default argument parsing for false-y values
Browse files Browse the repository at this point in the history
  • Loading branch information
OrfeasZ committed Sep 25, 2020
1 parent 78da1a2 commit bce5f75
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions content/vext/ref/shared/library/resourcemanager.md
Expand Up @@ -8,7 +8,7 @@ title: ResourceManager

| Method | Returns |
| ------ | ------- |
| **[MountSuperBundle](#mountsuperbundle)**(superbundle: string, mediaHint: [MediaHint](/vext/ref/shared/type/mediahint) = MediaHint.MediaHint_Default, optional: bool) | void |
| **[MountSuperBundle](#mountsuperbundle)**(superbundle: string, mediaHint: [MediaHint](/vext/ref/shared/type/mediahint) = MediaHint.MediaHint_Default, optional: bool = false) | void |
| **[UnmountSuperBundle](#unmountsuperbundle)**(superbundle: string) | void |
| **[GetSettings](#getsettings)**(settingsType: string) | [DataContainer](/vext/ref/shared/type/datacontainer) \| nil |
| **[LookupDataContainer](#lookupdatacontainer)**(compartment: [ResourceCompartment](/vext/ref/shared/type/resourcecompartment), name: string) | [DataContainer](/vext/ref/shared/type/datacontainer) \| nil |
Expand All @@ -35,7 +35,7 @@ title: ResourceManager

### MountSuperBundle {#mountsuperbundle}

> **MountSuperBundle**(superbundle: string, mediaHint: [MediaHint](/vext/ref/shared/type/mediahint) = MediaHint.MediaHint_Default, optional: bool)
> **MountSuperBundle**(superbundle: string, mediaHint: [MediaHint](/vext/ref/shared/type/mediahint) = MediaHint.MediaHint_Default, optional: bool = false)
#### Parameters

Expand Down
4 changes: 2 additions & 2 deletions content/vext/ref/shared/type/entity.md
Expand Up @@ -18,7 +18,7 @@ title: Entity

| Method | Returns |
| ------ | ------- |
| **[Init](#init)**(realm: [Realm](/vext/ref/fb/realm), enableAllowed: bool, isGhost: bool) | void |
| **[Init](#init)**(realm: [Realm](/vext/ref/fb/realm), enableAllowed: bool, isGhost: bool = false) | void |
| **[Destroy](#destroy)**() | void |
| **[Is](#is)**(typeName: string) | bool |
| **[FireEvent](#fireevent)**(eventId: int) | void |
Expand Down Expand Up @@ -76,7 +76,7 @@ title: Entity

### Init {#init}

> **Init**(realm: [Realm](/vext/ref/fb/realm), enableAllowed: bool, isGhost: bool)
> **Init**(realm: [Realm](/vext/ref/fb/realm), enableAllowed: bool, isGhost: bool = false)
#### Parameters

Expand Down
2 changes: 1 addition & 1 deletion types/generate-docs.js
Expand Up @@ -215,7 +215,7 @@ const stringifyParams = (params, context) => {
paramString += `${paramName}: `;
paramString += stringifyType(param, context, true);

if (param.default) {
if ('default' in param) {
paramString += ` = ${param.default}`;
}

Expand Down

0 comments on commit bce5f75

Please sign in to comment.