mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 15:57:13 +00:00
Merge pull request #32862 from vpicone/carbon__motion
Add @carbon/motion
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import { easings, motion } from "@carbon/motion";
|
||||
|
||||
const easingNames = Object.keys(easings);
|
||||
|
||||
const firstEasing = easingNames[0];
|
||||
const firstMode = Object.keys(firstEasing)[0];
|
||||
|
||||
motion(firstEasing, firstMode);
|
||||
Vendored
+25
@@ -0,0 +1,25 @@
|
||||
// Type definitions for @carbon/motion 0.0
|
||||
// Project: https://github.com/IBM/carbon-elements/tree/master/packages/motion
|
||||
// Definitions by: Vince Picone <https://github.com/vpicone>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export const easings: {
|
||||
entrance: {
|
||||
expressive: string;
|
||||
productive: string;
|
||||
};
|
||||
exit: {
|
||||
expressive: string;
|
||||
productive: string;
|
||||
};
|
||||
standard: {
|
||||
expressive: string;
|
||||
productive: string;
|
||||
};
|
||||
};
|
||||
|
||||
export function motion(name: string, mode: string): string;
|
||||
|
||||
export namespace motion {
|
||||
const prototype: {};
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": ["es6"],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": ["../"],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"paths": {
|
||||
"@carbon/motion": ["carbon__motion"]
|
||||
}
|
||||
},
|
||||
"files": ["index.d.ts", "carbon__motion-tests.ts"]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user