mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 07:47:04 +00:00
Vendored
+36
@@ -0,0 +1,36 @@
|
||||
// Type definitions for f1 8.0
|
||||
// Project: https://github.com/jam3/f1
|
||||
// Definitions by: Neo <https://github.com/neolwc>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference types="node" />
|
||||
|
||||
interface F1Options {
|
||||
onState: void;
|
||||
onUpdate: void;
|
||||
|
||||
name: string;
|
||||
|
||||
targets: any;
|
||||
states: any;
|
||||
transitions: any[];
|
||||
parsers: any;
|
||||
}
|
||||
|
||||
interface F1 extends NodeJS.EventEmitter {
|
||||
targets(targets: any): F1;
|
||||
states(states: any): F1;
|
||||
transitions(transitions: any[]): F1;
|
||||
parsers(parser: any): F1;
|
||||
init(initState: string): F1;
|
||||
|
||||
destroy(): void;
|
||||
apply(): void;
|
||||
|
||||
go(state: string, callback?: void): F1;
|
||||
set(state: string): F1;
|
||||
step(deltaTime: number): F1;
|
||||
update(): F1;
|
||||
}
|
||||
|
||||
declare function f1(settings?: F1Options): F1;
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es6",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"f1-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{ "extends": "../tslint.json" }
|
||||
Reference in New Issue
Block a user