UNPKG
@dialog-db/query
Version:
latest (0.11.1)
0.11.1
0.11.0
0.10.1
0.10.0
Datalog query engine inspired by Datomic
@dialog-db/query
/
src
/
syntax
/
callable.js
14 lines
(12 loc)
•
234 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// @ts-nocheck
/** *
@template
{
(...args: any[]) => any
}
F
*/
export
class
Callable
extends
Function
{
/** *
@param
{
F
}
invoke
*/
constructor
(
invoke
) {
return
Object
.
setPrototypeOf
(invoke,
new
.
target
.
prototype
) } }