You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is still a useful library so it needs to keep up.
I've already made a start on writing out the Types needed for this:
typeCallback=(screenSize: number)=>voidtypeSimpleMq<BP>=(bp: keyofBP,cb?: Callback)=>booleantypeComplexMq<BP>=(bp1: keyofBP,bp2: keyofBP,cb?: Callback)=>booleantypeReactToCB=(isActive: boolean,screenSize: number)=>voidexportinterfaceMqJs<BPextendsobject>{/** Returns `true` if the window size is **less than** the breakpoint size */min: SimpleMq<BP>,/** Returns `true` if the window size is **greater than** the breakpoint size */max: SimpleMq<BP>,/** Returns `true` if the window size is **greater than smaller** breakpoint but **less than the larger** breakpoint */inside: ComplexMq<BP>,/** Returns `true` if the window size is **less than the smaller breakpoint** or **greater than the larger** breakpoint */outside: ComplexMq<BP>,/** Runs a callback function every time `testMQ` changes from returning `true` to returning `false` */reactTo: (testMQ: ()=>boolean,cb: ReactToCB)=>void}
The text was updated successfully, but these errors were encountered:
The world is moving to TypeScript.
This is still a useful library so it needs to keep up.
I've already made a start on writing out the Types needed for this:
The text was updated successfully, but these errors were encountered: