mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-01 15:50:13 +00:00
adds definitions for eases
This commit is contained in:
2
types/eases/backIn.d.ts
vendored
Normal file
2
types/eases/backIn.d.ts
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import { backIn } from "./index";
|
||||
export = backIn;
|
||||
2
types/eases/backInOut.d.ts
vendored
Normal file
2
types/eases/backInOut.d.ts
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import { backInOut } from "./index";
|
||||
export = backInOut;
|
||||
2
types/eases/backOut.d.ts
vendored
Normal file
2
types/eases/backOut.d.ts
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import { backOut } from "./index";
|
||||
export = backOut;
|
||||
2
types/eases/bounceIn.d.ts
vendored
Normal file
2
types/eases/bounceIn.d.ts
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import { bounceIn } from "./index";
|
||||
export = bounceIn;
|
||||
2
types/eases/bounceInOut.d.ts
vendored
Normal file
2
types/eases/bounceInOut.d.ts
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import { bounceInOut } from "./index";
|
||||
export = bounceInOut;
|
||||
2
types/eases/bounceOut.d.ts
vendored
Normal file
2
types/eases/bounceOut.d.ts
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import { bounceOut } from "./index";
|
||||
export = bounceOut;
|
||||
2
types/eases/circIn.d.ts
vendored
Normal file
2
types/eases/circIn.d.ts
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import { circIn } from "./index";
|
||||
export = circIn;
|
||||
2
types/eases/circInOut.d.ts
vendored
Normal file
2
types/eases/circInOut.d.ts
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import { circInOut } from "./index";
|
||||
export = circInOut;
|
||||
2
types/eases/circOut.d.ts
vendored
Normal file
2
types/eases/circOut.d.ts
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import { circOut } from "./index";
|
||||
export = circOut;
|
||||
2
types/eases/cubicIn.d.ts
vendored
Normal file
2
types/eases/cubicIn.d.ts
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import { cubicIn } from "./index";
|
||||
export = cubicIn;
|
||||
2
types/eases/cubicInOut.d.ts
vendored
Normal file
2
types/eases/cubicInOut.d.ts
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import { cubicInOut } from "./index";
|
||||
export = cubicInOut;
|
||||
2
types/eases/cubicOut.d.ts
vendored
Normal file
2
types/eases/cubicOut.d.ts
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import { cubicOut } from "./index";
|
||||
export = cubicOut;
|
||||
100
types/eases/eases-tests.ts
Normal file
100
types/eases/eases-tests.ts
Normal file
@@ -0,0 +1,100 @@
|
||||
import eases = require("eases");
|
||||
import backInOut = require("eases/backInOut");
|
||||
import backIn = require("eases/backIn");
|
||||
import backOut = require("eases/backOut");
|
||||
import bounceInOut = require("eases/bounceInOut");
|
||||
import bounceIn = require("eases/bounceIn");
|
||||
import bounceOut = require("eases/bounceOut");
|
||||
import circInOut = require("eases/circInOut");
|
||||
import circIn = require("eases/circIn");
|
||||
import circOut = require("eases/circOut");
|
||||
import cubicInOut = require("eases/cubicInOut");
|
||||
import cubicIn = require("eases/cubicIn");
|
||||
import cubicOut = require("eases/cubicOut");
|
||||
import elasticInOut = require("eases/elasticInOut");
|
||||
import elasticIn = require("eases/elasticIn");
|
||||
import elasticOut = require("eases/elasticOut");
|
||||
import expoInOut = require("eases/expoInOut");
|
||||
import expoIn = require("eases/expoIn");
|
||||
import expoOut = require("eases/expoOut");
|
||||
import linear = require("eases/linear");
|
||||
import quadInOut = require("eases/quadInOut");
|
||||
import quadIn = require("eases/quadIn");
|
||||
import quadOut = require("eases/quadOut");
|
||||
import quartInOut = require("eases/quartInOut");
|
||||
import quartIn = require("eases/quartIn");
|
||||
import quartOut = require("eases/quartOut");
|
||||
import quintInOut = require("eases/quintInOut");
|
||||
import quintIn = require("eases/quintIn");
|
||||
import quintOut = require("eases/quintOut");
|
||||
import sineInOut = require("eases/sineInOut");
|
||||
import sineIn = require("eases/sineIn");
|
||||
import sineOut = require("eases/sineOut");
|
||||
|
||||
{
|
||||
eases.backInOut(0.5); // $ExpectType number
|
||||
eases.backIn(0.5); // $ExpectType number
|
||||
eases.backOut(0.5); // $ExpectType number
|
||||
eases.bounceInOut(0.5); // $ExpectType number
|
||||
eases.bounceIn(0.5); // $ExpectType number
|
||||
eases.bounceOut(0.5); // $ExpectType number
|
||||
eases.circInOut(0.5); // $ExpectType number
|
||||
eases.circIn(0.5); // $ExpectType number
|
||||
eases.circOut(0.5); // $ExpectType number
|
||||
eases.cubicInOut(0.5); // $ExpectType number
|
||||
eases.cubicIn(0.5); // $ExpectType number
|
||||
eases.cubicOut(0.5); // $ExpectType number
|
||||
eases.elasticInOut(0.5); // $ExpectType number
|
||||
eases.elasticIn(0.5); // $ExpectType number
|
||||
eases.elasticOut(0.5); // $ExpectType number
|
||||
eases.expoInOut(0.5); // $ExpectType number
|
||||
eases.expoIn(0.5); // $ExpectType number
|
||||
eases.expoOut(0.5); // $ExpectType number
|
||||
eases.linear(0.5); // $ExpectType number
|
||||
eases.quadInOut(0.5); // $ExpectType number
|
||||
eases.quadIn(0.5); // $ExpectType number
|
||||
eases.quadOut(0.5); // $ExpectType number
|
||||
eases.quartInOut(0.5); // $ExpectType number
|
||||
eases.quartIn(0.5); // $ExpectType number
|
||||
eases.quartOut(0.5); // $ExpectType number
|
||||
eases.quintInOut(0.5); // $ExpectType number
|
||||
eases.quintIn(0.5); // $ExpectType number
|
||||
eases.quintOut(0.5); // $ExpectType number
|
||||
eases.sineInOut(0.5); // $ExpectType number
|
||||
eases.sineIn(0.5); // $ExpectType number
|
||||
eases.sineOut(0.5); // $ExpectType number
|
||||
}
|
||||
|
||||
{
|
||||
backInOut(0.5); // $ExpectType number
|
||||
backIn(0.5); // $ExpectType number
|
||||
backOut(0.5); // $ExpectType number
|
||||
bounceInOut(0.5); // $ExpectType number
|
||||
bounceIn(0.5); // $ExpectType number
|
||||
bounceOut(0.5); // $ExpectType number
|
||||
circInOut(0.5); // $ExpectType number
|
||||
circIn(0.5); // $ExpectType number
|
||||
circOut(0.5); // $ExpectType number
|
||||
cubicInOut(0.5); // $ExpectType number
|
||||
cubicIn(0.5); // $ExpectType number
|
||||
cubicOut(0.5); // $ExpectType number
|
||||
elasticInOut(0.5); // $ExpectType number
|
||||
elasticIn(0.5); // $ExpectType number
|
||||
elasticOut(0.5); // $ExpectType number
|
||||
expoInOut(0.5); // $ExpectType number
|
||||
expoIn(0.5); // $ExpectType number
|
||||
expoOut(0.5); // $ExpectType number
|
||||
linear(0.5); // $ExpectType number
|
||||
quadInOut(0.5); // $ExpectType number
|
||||
quadIn(0.5); // $ExpectType number
|
||||
quadOut(0.5); // $ExpectType number
|
||||
quartInOut(0.5); // $ExpectType number
|
||||
quartIn(0.5); // $ExpectType number
|
||||
quartOut(0.5); // $ExpectType number
|
||||
quintInOut(0.5); // $ExpectType number
|
||||
quintIn(0.5); // $ExpectType number
|
||||
quintOut(0.5); // $ExpectType number
|
||||
sineInOut(0.5); // $ExpectType number
|
||||
sineIn(0.5); // $ExpectType number
|
||||
sineOut(0.5); // $ExpectType number
|
||||
}
|
||||
2
types/eases/elasticIn.d.ts
vendored
Normal file
2
types/eases/elasticIn.d.ts
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import { elasticIn } from "./index";
|
||||
export = elasticIn;
|
||||
2
types/eases/elasticInOut.d.ts
vendored
Normal file
2
types/eases/elasticInOut.d.ts
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import { elasticInOut } from "./index";
|
||||
export = elasticInOut;
|
||||
2
types/eases/elasticOut.d.ts
vendored
Normal file
2
types/eases/elasticOut.d.ts
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import { elasticOut } from "./index";
|
||||
export = elasticOut;
|
||||
2
types/eases/expoIn.d.ts
vendored
Normal file
2
types/eases/expoIn.d.ts
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import { expoIn } from "./index";
|
||||
export = expoIn;
|
||||
2
types/eases/expoInOut.d.ts
vendored
Normal file
2
types/eases/expoInOut.d.ts
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import { expoInOut } from "./index";
|
||||
export = expoInOut;
|
||||
2
types/eases/expoOut.d.ts
vendored
Normal file
2
types/eases/expoOut.d.ts
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import { expoOut } from "./index";
|
||||
export = expoOut;
|
||||
43
types/eases/index.d.ts
vendored
Normal file
43
types/eases/index.d.ts
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
// Type definitions for eases 1.0
|
||||
// Project: https://github.com/mattdesl/eases
|
||||
// Definitions by: Mathias Paumgarten <https://github.com/MathiasPaumgarten>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
interface Eases {
|
||||
backInOut(t: number): number;
|
||||
backIn(t: number): number;
|
||||
backOut(t: number): number;
|
||||
bounceInOut(t: number): number;
|
||||
bounceIn(t: number): number;
|
||||
bounceOut(t: number): number;
|
||||
circInOut(t: number): number;
|
||||
circIn(t: number): number;
|
||||
circOut(t: number): number;
|
||||
cubicInOut(t: number): number;
|
||||
cubicIn(t: number): number;
|
||||
cubicOut(t: number): number;
|
||||
elasticInOut(t: number): number;
|
||||
elasticIn(t: number): number;
|
||||
elasticOut(t: number): number;
|
||||
expoInOut(t: number): number;
|
||||
expoIn(t: number): number;
|
||||
expoOut(t: number): number;
|
||||
linear(t: number): number;
|
||||
quadInOut(t: number): number;
|
||||
quadIn(t: number): number;
|
||||
quadOut(t: number): number;
|
||||
quartInOut(t: number): number;
|
||||
quartIn(t: number): number;
|
||||
quartOut(t: number): number;
|
||||
quintInOut(t: number): number;
|
||||
quintIn(t: number): number;
|
||||
quintOut(t: number): number;
|
||||
sineInOut(t: number): number;
|
||||
sineIn(t: number): number;
|
||||
sineOut(t: number): number;
|
||||
}
|
||||
|
||||
declare const eases: Eases;
|
||||
|
||||
export = eases;
|
||||
export as namespace eases;
|
||||
2
types/eases/linear.d.ts
vendored
Normal file
2
types/eases/linear.d.ts
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import { linear } from "./index";
|
||||
export = linear;
|
||||
2
types/eases/quadIn.d.ts
vendored
Normal file
2
types/eases/quadIn.d.ts
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import { quadIn } from "./index";
|
||||
export = quadIn;
|
||||
2
types/eases/quadInOut.d.ts
vendored
Normal file
2
types/eases/quadInOut.d.ts
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import { quadInOut } from "./index";
|
||||
export = quadInOut;
|
||||
2
types/eases/quadOut.d.ts
vendored
Normal file
2
types/eases/quadOut.d.ts
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import { quadOut } from "./index";
|
||||
export = quadOut;
|
||||
2
types/eases/quartIn.d.ts
vendored
Normal file
2
types/eases/quartIn.d.ts
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import { quartIn } from "./index";
|
||||
export = quartIn;
|
||||
2
types/eases/quartInOut.d.ts
vendored
Normal file
2
types/eases/quartInOut.d.ts
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import { quartInOut } from "./index";
|
||||
export = quartInOut;
|
||||
2
types/eases/quartOut.d.ts
vendored
Normal file
2
types/eases/quartOut.d.ts
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import { quartOut } from "./index";
|
||||
export = quartOut;
|
||||
2
types/eases/quintIn.d.ts
vendored
Normal file
2
types/eases/quintIn.d.ts
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import { quintIn } from "./index";
|
||||
export = quintIn;
|
||||
2
types/eases/quintInOut.d.ts
vendored
Normal file
2
types/eases/quintInOut.d.ts
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import { quintInOut } from "./index";
|
||||
export = quintInOut;
|
||||
2
types/eases/quintOut.d.ts
vendored
Normal file
2
types/eases/quintOut.d.ts
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import { quintOut } from "./index";
|
||||
export = quintOut;
|
||||
2
types/eases/sineIn.d.ts
vendored
Normal file
2
types/eases/sineIn.d.ts
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import { sineIn } from "./index";
|
||||
export = sineIn;
|
||||
2
types/eases/sineInOut.d.ts
vendored
Normal file
2
types/eases/sineInOut.d.ts
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import { sineInOut } from "./index";
|
||||
export = sineInOut;
|
||||
2
types/eases/sineOut.d.ts
vendored
Normal file
2
types/eases/sineOut.d.ts
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import { sineOut } from "./index";
|
||||
export = sineOut;
|
||||
23
types/eases/tsconfig.json
Normal file
23
types/eases/tsconfig.json
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"eases-tests.ts"
|
||||
]
|
||||
}
|
||||
3
types/eases/tslint.json
Normal file
3
types/eases/tslint.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"extends": "dtslint/dt.json"
|
||||
}
|
||||
Reference in New Issue
Block a user