Skip to content

Commit

Permalink
Add VoidFunction interface to es5 for Node.js support
Browse files Browse the repository at this point in the history
  • Loading branch information
galkin committed Jan 22, 2025
1 parent 1c4083f commit 652a3b4
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/es5.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,10 @@ interface Function {
caller: Function;
}

interface VoidFunction {
(): void;
}

interface FunctionConstructor {
/**
* Creates a new function.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2756,6 +2756,7 @@
// | var URIError: URIErrorConstructor
// | interface URIErrorConstructor
// | void
// | interface VoidFunction
// | type WeakKey = object
// | interface WeakKeyTypes
// | interface ImportAssertions
Expand Down Expand Up @@ -2936,6 +2937,7 @@
// | var URIError: URIErrorConstructor
// | interface URIErrorConstructor
// | void
// | interface VoidFunction
// | type WeakKey = object
// | interface WeakKeyTypes
// | interface ImportAssertions
Expand Down Expand Up @@ -83541,6 +83543,27 @@
}
]
},
{
"name": "VoidFunction",
"kind": "interface",
"kindModifiers": "declare",
"sortText": "15",
"displayParts": [
{
"text": "interface",
"kind": "keyword"
},
{
"text": " ",
"kind": "space"
},
{
"text": "VoidFunction",
"kind": "interfaceName"
}
],
"documentation": []
},
{
"name": "WeakKey",
"kind": "type",
Expand Down Expand Up @@ -93012,6 +93035,27 @@
}
]
},
{
"name": "VoidFunction",
"kind": "interface",
"kindModifiers": "declare",
"sortText": "15",
"displayParts": [
{
"text": "interface",
"kind": "keyword"
},
{
"text": " ",
"kind": "space"
},
{
"text": "VoidFunction",
"kind": "interfaceName"
}
],
"documentation": []
},
{
"name": "WeakKey",
"kind": "type",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1294,6 +1294,12 @@ Info seq [hh:mm:ss:mss] response:
"kindModifiers": "",
"sortText": "15"
},
{
"name": "VoidFunction",
"kind": "interface",
"kindModifiers": "declare",
"sortText": "15"
},
{
"name": "WeakKey",
"kind": "type",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1246,6 +1246,12 @@ Info seq [hh:mm:ss:mss] response:
"kindModifiers": "",
"sortText": "15"
},
{
"name": "VoidFunction",
"kind": "interface",
"kindModifiers": "declare",
"sortText": "15"
},
{
"name": "WeakKey",
"kind": "type",
Expand Down

0 comments on commit 652a3b4

Please sign in to comment.