Skip to content

Instantly share code, notes, and snippets.

@WimJongeneel
Last active December 29, 2019 13:34
Show Gist options
  • Save WimJongeneel/ec34d8f82ad5d8ddc2a91414d8c36d64 to your computer and use it in GitHub Desktop.
Save WimJongeneel/ec34d8f82ad5d8ddc2a91414d8c36d64 to your computer and use it in GitHub Desktop.
interface StringExprBuilder {
equals(s: string | StringExprBuilder): BoolExprBuilder
includes(s: string | StringExprBuilder): BoolExprBuilder
getExpr(): Expr
}
interface BoolExprBuilder {
equals(s: boolean | BoolExprBuilder): BoolExprBuilder
and(e: BoolExprBuilder): BoolExprBuilder
getExpr(): Expr
}
interface NumberExprBuilder {
equals(s: number | NumberExprBuilder): BoolExprBuilder
getExpr(): Expr
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment