balena-supervisor/typings/json-mask.d.ts
Cameron Diver 8ee26adbbe
Refactor: Convert event tracker module to typescript
Change-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-09-03 09:36:21 -07:00

12 lines
341 B
TypeScript

declare module 'json-mask' {
function mask(obj: Dictionary<any>, mask: string): Dictionary<any>;
// These types are not strictly correct, but they don't need to be for our usage
namespace mask {
export const compile: (mask: string) => any;
export const filter: (obj: Dictionary<any>, compiledMask: any) => any;
}
export = mask;
}