mirror of
https://github.com/tridactyl/tridactyl.git
synced 2026-09-10 07:16:33 -04:00
20 lines
394 B
TypeScript
20 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
|
|
}
|
|
}
|