formatting and typos

This commit is contained in:
DokaDoka committed 2022-12-11 15:00:43 +11:00
1 parent 75698216e0
commit 724c7e356d
99 files changed
+515 -305

No files matched your search

+4 -2
View File
@@ -1,4 +1,5 @@
### lib.checkDependency
Check if a resource is using a specified version or higher, allowing for compatibility checks or throwing errors.
import Tabs from '@theme/Tabs';
@@ -7,6 +8,7 @@ import TabItem from '@theme/TabItem';
```lua
lib.checkDependency(resource, version)
```
* resource: `string`
* version: `string`
@@ -16,6 +18,7 @@ lib.checkDependency(resource, version)
```lua
if not lib.checkDependency('ox_lib', '1.5.0') then error() end
```
</TabItem>
<TabItem value='JS/TS'>
@@ -25,7 +28,6 @@ import lib from '@overextended/ox_lib/shared'
if (!lib.checkDependency('ox_lib', '1.5.0')) error()
```
</TabItem>
</Tabs>