camljs
camljs copied to clipboard
CamlBuilder TypeScript Generic
Hi Andrei,
Is it possible to add a Generic when instantiating the CamlBuilder class?
type Person = "Name" | "Age" | "Address" | "Mobile";
// Should Pass
const validQuery= new CamlBuilder<Person>().Where().TextField("Name").IsNotNull().ToString()
// Should Fail
const invalidQuery = new CamlBuilder<Person>().Where().TextField("Birthdate").IsNotNull().ToString()