mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 23:10:29 +00:00
added types for motion-scroll (#35395)
This commit is contained in:
committed by
Nathan Shively-Sanders
parent
2dec5141f6
commit
0b795f1149
Vendored
+19
@@ -0,0 +1,19 @@
|
||||
// Type definitions for motion-scroll 1.0
|
||||
// Project: https://github.com/ninjabonsai/motion-scroll#readme
|
||||
// Definitions by: Richard Rogers <https://github.com/ninjabonsai>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export as namespace MotionScroll;
|
||||
|
||||
export function scroll(config: {
|
||||
element?: HTMLElement;
|
||||
axis?: "x" | "y";
|
||||
scrollTo?: number;
|
||||
speed?: number;
|
||||
easing?: () => void;
|
||||
callBack?: () => void;
|
||||
delay?: number;
|
||||
force?: boolean;
|
||||
minScrollTime?: number;
|
||||
maxScrollTime?: number;
|
||||
}): void;
|
||||
@@ -0,0 +1,3 @@
|
||||
import MotionScroll = require("motion-scroll");
|
||||
|
||||
MotionScroll.scroll({});
|
||||
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": ["es6", "dom"],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": ["../"],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": ["index.d.ts", "motion-scroll-tests.ts"]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user