@types/f1
TypeScript icon, indicating that this package has built-in type declarations

8.0.6 • Public • Published

Installation

npm install --save @types/f1

Summary

This package contains type definitions for f1 (https://github.com/jam3/f1).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/f1.

index.d.ts

/// <reference types="node" />

interface F1Options {
    onState?(...args: any[]): void;
    onUpdate?(...args: any[]): 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(pathToTarget: string, target: any, parserDefinition: any): void;

    go(state: string, callback?: (state: any, currentState: any) => void): F1;
    set(state: string): F1;
    step(deltaTime: number): F1;
    update(): F1;
}

declare function F1(settings?: F1Options): F1;

export = F1;

Additional Details

  • Last updated: Tue, 07 Nov 2023 03:09:37 GMT
  • Dependencies: @types/node

Credits

These definitions were written by Neo.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/f1

Weekly Downloads

7

Version

8.0.6

License

MIT

Unpacked Size

4.03 kB

Total Files

5

Last publish

Collaborators

  • types