mirror of
https://github.com/vale981/tridactyl
synced 2025-03-05 09:31:41 -05:00
19 lines
394 B
TypeScript
19 lines
394 B
TypeScript
import { Type } from "./Type"
|
|
|
|
export class VoidType implements Type {
|
|
public kind = "void"
|
|
|
|
constructor(public isDotDotDot = false, public isQuestion = false) {}
|
|
|
|
public toConstructor() {
|
|
return `new VoidType(${this.isDotDotDot}, ${this.isQuestion})`
|
|
}
|
|
|
|
public toString() {
|
|
return this.kind
|
|
}
|
|
|
|
public convert(argument) {
|
|
return null
|
|
}
|
|
}
|