mirror of
https://github.com/tridactyl/tridactyl.git
synced 2026-09-14 01:06:18 -04:00
20 lines
396 B
TypeScript
20 lines
396 B
TypeScript
import { Type } from "./Type"
|
|
|
|
export class AnyType implements Type {
|
|
public kind = "any"
|
|
|
|
constructor(public isDotDotDot = false, public isQuestion = false) {}
|
|
|
|
public toConstructor() {
|
|
return `new AnyType(${!this.isDotDotDot}, ${this.isQuestion})`
|
|
}
|
|
|
|
public toString() {
|
|
return this.kind
|
|
}
|
|
|
|
public convert(argument) {
|
|
return argument
|
|
}
|
|
}
|