-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Mark Carver <mark.carver@me.com>
- Loading branch information
1 parent
20bd751
commit 9af07d3
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import Vue, { VueConstructor, ComponentOptions, PluginFunction } from 'vue' | ||
import { default as bands } from '../src/bands' | ||
|
||
export declare interface MediaQueryBands { | ||
mixin: ComponentOptions<Vue> | ||
[key: string]: any | ||
} | ||
|
||
export declare class MediaQueries { | ||
constructor(options?: { bands: MediaQueryBands }) | ||
expr(expressionString): boolean | ||
below(...args): boolean | ||
above(...args): boolean | ||
between(...args): boolean | ||
beyond(...args): boolean | ||
install(Vue): PluginFunction<VueConstructor> | ||
} | ||
|
||
export declare type CommonBands<T, K extends keyof bands> = { | ||
[K in keyof T]: MediaQueryBands | ||
} | ||
|
||
declare module 'vue/types/vue' { | ||
interface Vue { | ||
readonly $mq: MediaQueries | ||
} | ||
} |