DefinitelyTyped/types/enquire.js/enquire.js-tests.ts
Christian Rackerseder f5da07c596 Fixed import in test
2018-03-28 19:49:44 +02:00

18 lines
526 B
TypeScript

import enquire = require('enquire.js');
enquire
.register('(min-width: 300px) and (max-width: 600px)', {
deferSetup: true,
match: () => {},
unmatch: () => {},
setup: () => {},
destroy: () => {}
})
.register('(min-width: 300px) and (max-width: 600px)', {});
enquire.register('(min-width: 300px) and (max-width: 600px)', [{}, {}], true);
enquire.register('(min-width: 300px) and (max-width: 600px)', () => {}, true);
enquire.unregister('(min-width: 300px) and (max-width: 600px)');