mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
jsdom, js: start refactoring jsdom; improve JS interfaces; add two attributes for them (#12488)
This commit is contained in:
parent
6ac109a7c3
commit
2eb02ff5a7
28 changed files with 282 additions and 1812 deletions
|
@ -9,14 +9,17 @@ module builtin
|
|||
|
||||
pub interface JS.Object {}
|
||||
|
||||
[single_impl]
|
||||
pub interface JS.BigInt {
|
||||
JS.Any
|
||||
}
|
||||
|
||||
[single_impl]
|
||||
pub interface JS.Number {
|
||||
JS.Any
|
||||
}
|
||||
|
||||
[single_impl]
|
||||
pub interface JS.String {
|
||||
JS.Any
|
||||
length JS.Number
|
||||
|
@ -34,8 +37,10 @@ pub interface JS.String {
|
|||
lastIndexOf(needle JS.String) JS.Number
|
||||
}
|
||||
|
||||
[single_impl]
|
||||
pub interface JS.Boolean {
|
||||
JS.Any
|
||||
length JS.Number
|
||||
}
|
||||
|
||||
pub interface JS.Map {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue