Move types to global app file
This commit is contained in:
52
src/app.d.ts
vendored
52
src/app.d.ts
vendored
@@ -33,4 +33,56 @@ declare type PhotoGridAbout = {
|
||||
id: string
|
||||
title: string
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Notifcation
|
||||
*/
|
||||
declare interface Notification {
|
||||
title: string
|
||||
name: string
|
||||
image: string
|
||||
timeout?: number
|
||||
id?: number
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Smooth Scroll Options
|
||||
*/
|
||||
declare interface smoothScrollOptions {
|
||||
hash: string
|
||||
changeHash?: boolean
|
||||
event?: MouseEvent
|
||||
callback?: Function
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Swipe options
|
||||
*/
|
||||
interface SwipeOptions {
|
||||
travelX?: number
|
||||
travelY?: number
|
||||
timeframe?: number
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reveal Animation
|
||||
*/
|
||||
declare interface RevealOptions {
|
||||
enable?: boolean
|
||||
options?: TransitionOptions
|
||||
children?: string | HTMLElement
|
||||
animation: any
|
||||
}
|
||||
// Options interface
|
||||
declare interface TransitionOptions {
|
||||
threshold?: number
|
||||
duration?: number
|
||||
stagger?: number
|
||||
delay?: number
|
||||
easing?: any
|
||||
}
|
||||
Reference in New Issue
Block a user