mirror of
https://github.com/lune-org/lune.git
synced 2024-12-12 13:00:37 +00:00
Improve selene type definitions
This commit is contained in:
parent
091c73038f
commit
aa95fa2234
2 changed files with 30 additions and 0 deletions
11
CHANGELOG.md
11
CHANGELOG.md
|
@ -5,6 +5,17 @@ All notable changes to this project will be documented in this file.
|
||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
## Unreleased
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
- Improved type definitions file for Selene, now including constants like `process.env` + tags such as `readonly` and `mustuse` wherever applicable
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Fixed type definitions file for Selene not including all API members and parameters
|
||||||
|
- Fixed `process.exit` exiting at the first yield instead of exiting instantly as it should
|
||||||
|
|
||||||
## `0.2.0` - January 28th, 2023
|
## `0.2.0` - January 28th, 2023
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
19
lune.yml
19
lune.yml
|
@ -3,14 +3,17 @@
|
||||||
globals:
|
globals:
|
||||||
# Console
|
# Console
|
||||||
console.resetColor:
|
console.resetColor:
|
||||||
|
args: []
|
||||||
console.setColor:
|
console.setColor:
|
||||||
args:
|
args:
|
||||||
- type: string
|
- type: string
|
||||||
console.resetStyle:
|
console.resetStyle:
|
||||||
|
args: []
|
||||||
console.setStyle:
|
console.setStyle:
|
||||||
args:
|
args:
|
||||||
- type: string
|
- type: string
|
||||||
console.format:
|
console.format:
|
||||||
|
must_use: true
|
||||||
args:
|
args:
|
||||||
- type: "..."
|
- type: "..."
|
||||||
console.log:
|
console.log:
|
||||||
|
@ -27,9 +30,11 @@ globals:
|
||||||
- type: "..."
|
- type: "..."
|
||||||
# FS (filesystem)
|
# FS (filesystem)
|
||||||
fs.readFile:
|
fs.readFile:
|
||||||
|
must_use: true
|
||||||
args:
|
args:
|
||||||
- type: string
|
- type: string
|
||||||
fs.readDir:
|
fs.readDir:
|
||||||
|
must_use: true
|
||||||
args:
|
args:
|
||||||
- type: string
|
- type: string
|
||||||
fs.writeFile:
|
fs.writeFile:
|
||||||
|
@ -46,24 +51,34 @@ globals:
|
||||||
args:
|
args:
|
||||||
- type: string
|
- type: string
|
||||||
fs.isFile:
|
fs.isFile:
|
||||||
|
must_use: true
|
||||||
args:
|
args:
|
||||||
- type: string
|
- type: string
|
||||||
fs.isDir:
|
fs.isDir:
|
||||||
|
must_use: true
|
||||||
args:
|
args:
|
||||||
- type: string
|
- type: string
|
||||||
# Net (networking)
|
# Net (networking)
|
||||||
net.jsonEncode:
|
net.jsonEncode:
|
||||||
|
must_use: true
|
||||||
args:
|
args:
|
||||||
- type: any
|
- type: any
|
||||||
- required: false
|
- required: false
|
||||||
type: boolean
|
type: boolean
|
||||||
net.jsonDecode:
|
net.jsonDecode:
|
||||||
|
must_use: true
|
||||||
args:
|
args:
|
||||||
- type: string
|
- type: string
|
||||||
net.request:
|
net.request:
|
||||||
args:
|
args:
|
||||||
- type: any
|
- type: any
|
||||||
# Processs
|
# Processs
|
||||||
|
process.args:
|
||||||
|
property: read-only
|
||||||
|
process.cwd:
|
||||||
|
property: read-only
|
||||||
|
process.env:
|
||||||
|
property: new-fields
|
||||||
process.exit:
|
process.exit:
|
||||||
args:
|
args:
|
||||||
- required: false
|
- required: false
|
||||||
|
@ -73,8 +88,12 @@ globals:
|
||||||
- type: string
|
- type: string
|
||||||
- required: false
|
- required: false
|
||||||
type: table
|
type: table
|
||||||
|
- required: false
|
||||||
|
type: table
|
||||||
# Task
|
# Task
|
||||||
task.cancel:
|
task.cancel:
|
||||||
|
args:
|
||||||
|
- type: thread
|
||||||
task.defer:
|
task.defer:
|
||||||
args:
|
args:
|
||||||
- type: thread | function
|
- type: thread | function
|
||||||
|
|
Loading…
Reference in a new issue