For people who like all their types in order.
This ambient type definition was written as part of Plywood but was extracted as it can be of use in any TypeScript based project that deals with Druid queries.
-
Copy the file
druid/druid.d.ts
into your project. -
Refer to it using:
/// <reference path="path/to/file/druid.d.ts" />
-
Use the types defined within the
Druid
module.
These definitions use union and string types and thus requires TypeScript >= 1.8